68% pagelines-plus

Code Review | PageLines Plus

WordPress plugin PageLines Plus scored68%from 54 tests.

About plugin

  • Plugin page: pagelines-plus
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.4
  • WordPress version: 6.3.1
  • First release: Jun 12, 2012
  • Latest release: Jun 23, 2012
  • Number of updates: 10
  • Update frequency: every 1.1 days
  • Top authors: highergroundstudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,212 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.16MB] [CPU: ▼41.07ms] Passed 4 tests

This is a short check of server-side resources used by PageLines Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.55 ▼0.98
Dashboard /wp-admin2.80 ▼0.5514.38 ▼42.45
Posts /wp-admin/edit.php2.80 ▼0.5614.93 ▼31.86
Add New Post /wp-admin/post-new.php2.80 ▼3.0916.08 ▼70.24
Media Library /wp-admin/upload.php2.80 ▼0.4414.75 ▼19.71
Upload Section /wp-admin/admin.php?page=section-uploader2.8014.88

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for PageLines Plus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.23 ▼1.161.75 ▲0.0841.26 ▼2.31
Dashboard /wp-admin2,228 ▲435.93 ▲0.91106.13 ▲4.1049.16 ▲10.58
Posts /wp-admin/edit.php2,117 ▲281.99 ▼0.0039.56 ▲2.3337.55 ▲2.59
Add New Post /wp-admin/post-new.php1,446 ▼7417.47 ▼5.59547.20 ▼125.0029.61 ▼25.13
Media Library /wp-admin/upload.php1,407 ▲194.19 ▲0.02103.62 ▼11.9239.05 ▼7.99
Upload Section /wp-admin/admin.php?page=section-uploader8092.0224.4927.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method pagelinesPlus::assets_public() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=section-uploader
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method pagelinesPlus::assets_public() should not be called statically
    • > GET request to /wp-admin/admin.php?page=section-uploader
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method pagelinesPlus::add_menu() should not be called statically
    • > GET request to /wp-admin/admin.php?page=section-uploader
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method pagelinesPlus::environment_check() should not be called statically
    • > GET request to /wp-admin/admin.php?page=section-uploader
    • > Warning in wp-content/plugins/pagelines-plus/pagelines-plus.php+234
    Use of undefined constant EXTEND_NETWORK - assumed 'EXTEND_NETWORK' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=section-uploader
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method pagelinesPlus::upload_form() should not be called statically

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/pagelines-plus/pagelines-plus.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: pagelines, installer, uploader, section

pagelines-plus/pagelines-plus.php Passed 13 tests

This is the main PHP file of "PageLines Plus" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
Enhancements to Pagelines Wordpress framework

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin174 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12967144
CSS10030

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png0.59KB0.68KB0.00%