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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 42.95 ▲4.99 |
Dashboard /wp-admin | 3.89 ▲0.55 | 53.70 ▼7.50 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 47.89 ▼1.49 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.56 | 81.91 ▼15.65 |
Media Library /wp-admin/upload.php | 3.81 ▲0.58 | 37.06 ▲2.29 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.01 | 35.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲103 | 14.35 ▼0.14 | 2.02 ▲0.43 | 32.88 ▼6.99 |
Dashboard /wp-admin | 2,214 ▲37 | 5.70 ▲0.09 | 79.63 ▼4.89 | 75.40 ▲31.31 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.04 | 35.27 ▼0.34 | 37.82 ▼1.29 |
Add New Post /wp-admin/post-new.php | 6,270 ▲4,739 | 19.07 ▼3.97 | 943.10 ▲296.75 | 61.40 ▲7.48 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.21 ▲0.00 | 94.18 ▼6.90 | 75.12 ▲30.26 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,063 | 1.70 | 26.35 | 25.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 196 | 8,021 | 17,067 | 34,969 |
SVG | 25 | 0 | 0 | 2,130 |
CSS | 14 | 416 | 24 | 1,931 |
JavaScript | 7 | 96 | 165 | 840 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
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 code | 0.60 |
Average class complexity | 45.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 98 | |
▷ Abstract classes | 4 | 4.08% |
▷ Concrete classes | 94 | 95.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,398 | |
▷ Static methods | 196 | 14.02% |
▷ Public methods | 1,023 | 73.18% |
▷ Protected methods | 42 | 3.00% |
▷ Private methods | 333 | 23.82% |
Functions | 95 | |
▷ Named functions | 95 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 160 | |
▷ Global constants | 102 | 63.75% |
▷ Class constants | 58 | 36.25% |
▷ Public constants | 58 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/channel_design_icons_7.png | 1.23KB | 1.27KB | 0.00% |
images/pagemanager_logo_200_blue.png | 27.78KB | 11.06KB | ▼ 60.17% |
images/pb-layouts-bz.png | 2.69KB | 0.74KB | ▼ 72.48% |
images/channel_design_icons_5.png | 1.14KB | 1.17KB | 0.00% |
images/pagemanager_icon_white24.png | 2.15KB | 0.79KB | ▼ 63.46% |