Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲2.17MB] [CPU: ▲5.58ms] Passed 4 tests
An overview of server-side resources used by PressCode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.52 ▲2.05 | 50.98 ▲8.01 |
Dashboard /wp-admin | 5.52 ▲2.17 | 58.86 ▼7.71 |
Posts /wp-admin/edit.php | 5.66 ▲2.30 | 65.95 ▲10.80 |
Add New Post /wp-admin/post-new.php | 8.15 ▲2.26 | 110.34 ▲11.23 |
Media Library /wp-admin/upload.php | 5.44 ▲2.21 | 60.11 ▲21.42 |
Settings /wp-admin/admin.php?page=pcode_settings | 9.58 | 76.09 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 5.65 | 47.02 |
Dashboard /wp-admin/admin.php?page=pcode_dashboard | 7.85 | 57.29 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 229 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
PcodeApfPageSettings |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by PressCode
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲105 | 14.14 ▼0.49 | 1.62 ▼0.15 | 40.82 ▼4.22 |
Dashboard /wp-admin | 2,275 ▲104 | 5.59 ▼0.10 | 89.37 ▼4.76 | 47.01 ▲3.55 |
Posts /wp-admin/edit.php | 2,186 ▲86 | 2.04 ▲0.02 | 41.16 ▲1.25 | 42.01 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 21.10 ▼1.98 | 616.06 ▼94.57 | 55.81 ▲1.78 |
Media Library /wp-admin/upload.php | 1,485 ▲85 | 4.28 ▲0.04 | 101.73 ▼6.59 | 47.47 ▲4.45 |
Settings /wp-admin/admin.php?page=pcode_settings | 1,080 | 2.24 | 34.79 | 70.72 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,060 | 2.06 | 25.49 | 31.85 |
Dashboard /wp-admin/admin.php?page=pcode_dashboard | 933 | 2.23 | 27.95 | 42.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- PcodeApfPageSettings
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following
- 208× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_HelpPane_Base' not found in wp-content/plugins/presscode/lib/apf/factory/page_meta_box/_controller/AdminPageFramework_HelpPane_page_meta_box.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/_view/resource/AdminPageFramework_Form_View__Resource.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Form_View___Attribute_Base' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionsTablesContainer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Registry' not found in wp-content/plugins/presscode/lib/apf/admin-page-framework-include-class-list.php:3
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Form_View___Section_Base' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/_view/AdminPageFramework_Form_View___ToolTip.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/AdminPageFramework_Form.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Form_View___Section_Base' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Link_Base' not found in wp-content/plugins/presscode/lib/apf/factory/post_type/_controller/AdminPageFramework_Link_post_type.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Factory' not found in wp-content/plugins/presscode/lib/apf/factory/user_meta/AdminPageFramework_UserMeta.php:7
- > PHP Fatal error
Uncaught Error: Class 'Pcode_AdminPageFramework_Input_Base' not found in wp-content/plugins/presscode/lib/apf/factory/_common/form/input/AdminPageFramework_Input_radio.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pcode_dashboard
- > Javascript (severe) in unknown
/wp-content/plugins/presscode/js/presscode-codemirror-5.13-mode-clike.js?ver=6.3.1 9:8 Uncaught ReferenceError: CodeMirror is not defined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pcode_dashboard
- > Javascript (severe) in unknown
/wp-content/plugins/presscode/js/presscode-codemirror-5.13-mode-php.js?ver=6.3.1 9:8 Uncaught ReferenceError: CodeMirror is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== presscode ===
)
presscode/presscode.php Passed 13 tests
The primary PHP file in "PressCode" version 1.0.13 is used by WordPress to initiate all plugin functionality
67 characters long description:
The best and easiest way to add custom code to your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected18,904 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 223 | 1,258 | 3,281 | 18,108 |
JavaScript | 2 | 67 | 152 | 796 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 335 | |
▷ Abstract classes | 93 | 27.76% |
▷ Concrete classes | 242 | 72.24% |
▷ Final classes | 2 | 0.83% |
Methods | 1,764 | |
▷ Static methods | 246 | 13.95% |
▷ Public methods | 1,013 | 57.43% |
▷ Protected methods | 284 | 16.10% |
▷ Private methods | 467 | 26.47% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/presscode-logo-256.png | 6.30KB | 3.73KB | ▼ 40.69% |
images/presscode-logo-128.png | 7.78KB | 2.43KB | ▼ 68.75% |