58% pagemanager

Code Review | PageManager

WordPress plugin PageManager scored58%from 54 tests.

About plugin

  • Plugin page: pagemanager
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Mar 26, 2022
  • Latest release: Apr 5, 2022
  • Number of updates: 24
  • Update frequency: every 0.5 days
  • Top authors: ronin030 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.57MB] [CPU: ▼5.59ms] Passed 4 tests

Server-side resources used by PageManager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.06 ▲0.5942.95 ▲4.99
Dashboard /wp-admin3.89 ▲0.5553.70 ▼7.50
Posts /wp-admin/edit.php3.95 ▲0.5947.89 ▼1.49
Add New Post /wp-admin/post-new.php6.44 ▲0.5681.91 ▼15.65
Media Library /wp-admin/upload.php3.81 ▲0.5837.06 ▲2.29
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius4.0135.87

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 303 new files
Database: 1 new table, 10 new options
New tables
pagemanager_settings
New WordPress options
can_compress_scripts
db_upgraded
fs_gdpr
fs_debug_mode
widget_recent-comments
fs_active_plugins
fs_accounts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for PageManager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲10314.35 ▼0.142.02 ▲0.4332.88 ▼6.99
Dashboard /wp-admin2,214 ▲375.70 ▲0.0979.63 ▼4.8975.40 ▲31.31
Posts /wp-admin/edit.php2,132 ▲321.98 ▼0.0435.27 ▼0.3437.82 ▼1.29
Add New Post /wp-admin/post-new.php6,270 ▲4,73919.07 ▼3.97943.10 ▲296.7561.40 ▲7.48
Media Library /wp-admin/upload.php1,431 ▲344.21 ▲0.0094.18 ▼6.9075.12 ▲30.26
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0631.7026.3525.83

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/pagemanager/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie tables detected upon uninstall: 1 table
    • pagemanager_settings
  • Zombie WordPress options were found after uninstall: 10 options
    • can_compress_scripts
    • db_upgraded
    • fs_debug_mode
    • widget_recent-comments
    • fs_gdpr
    • theysaidso_admin_options
    • fs_active_plugins
    • widget_theysaidso_widget
    • fs_accounts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pagemanager/src/Theme/pageblock/partials/posts-footer.php
  • 68× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pagemanager/src/Theme/pageblock/partials/post-md12.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pagemanager/src/Theme/pageblock/partials/post-title.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pagemanager/src/Theme/pageblock/posts-nine.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Pagemanager\\ApiInterface' not found in wp-content/plugins/pagemanager/src/api/LoadMore.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_json_encode() in wp-content/plugins/pagemanager/src/views/manage.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pagemanager/src/Theme/pageblock/posts-six.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Pagemanager\\Model\\PageType\\AbstractPageType' not found in wp-content/plugins/pagemanager/src/Model/PageType/Index.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Pagemanager\\Controller\\Pageblock\\AbstractPageBlock' not found in wp-content/plugins/pagemanager/src/Controller/Pageblock/TermPosts.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/pagemanager/src/Theme/pageblock/partials/posts-header.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Pagemanager\\Model\\BlockType\\AbstractBlockType' not found in wp-content/plugins/pagemanager/src/Model/BlockType/TermPosts.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: cms, content curator, content management, page manager, category pages archive pages...

pagemanager/pagemanager.php Passed 13 tests

The main file in "PageManager" v. 1.0.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
113 characters long description:
Wordpress content management on a new level. Curate your posts and compose page blocks with a variety of layouts.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin40,111 lines of code in 244 files:
LanguageFilesBlank linesComment linesLines of code
PHP1968,02117,06734,969
SVG25002,130
CSS14416241,931
JavaScript796165840
Markdown1680214
JSON10027

PHP code 50% from 2 tests

This is a very shot review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity45.22
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces8
Interfaces2
Traits0
Classes98
▷ Abstract classes44.08%
▷ Concrete classes9495.92%
▷ Final classes00.00%
Methods1,398
▷ Static methods19614.02%
▷ Public methods1,02373.18%
▷ Protected methods423.00%
▷ Private methods33323.82%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants160
▷ Global constants10263.75%
▷ Class constants5836.25%
▷ Public constants58100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.47MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/channel_design_icons_7.png1.23KB1.27KB0.00%
images/pagemanager_logo_200_blue.png27.78KB11.06KB▼ 60.17%
images/pb-layouts-bz.png2.69KB0.74KB▼ 72.48%
images/channel_design_icons_5.png1.14KB1.17KB0.00%
images/pagemanager_icon_white24.png2.15KB0.79KB▼ 63.46%