Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress::plugin_activation() should not be called statically
Server metrics [RAM: ▼1.24MB] [CPU: ▼44.88ms] Passed 4 tests
Analyzing server-side resources used by Contentpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 19.74 ▼19.21 |
Dashboard /wp-admin | 2.77 ▼0.53 | 17.67 ▼36.13 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 16.51 ▼38.08 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 16.22 ▼81.89 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 14.84 ▼23.42 |
Contentpress /wp-admin/options-general.php?page=contentpress | 2.77 | 15.79 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
contentpress_page_name |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
contentpress_page_title |
can_compress_scripts |
contentpress_page_id |
Browser metrics Passed 4 tests
A check of browser resources used by Contentpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲144 | 13.51 ▼0.69 | 8.99 ▲7.38 | 43.06 ▼0.43 |
Dashboard /wp-admin | 2,208 ▲30 | 5.65 ▲0.08 | 85.14 ▼16.84 | 37.13 ▼6.56 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.08 | 37.69 ▲1.25 | 36.29 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 18.19 ▼5.02 | 636.34 ▼61.89 | 70.50 ▲11.47 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.08 | 100.27 ▼14.38 | 45.22 ▼7.02 |
Contentpress /wp-admin/options-general.php?page=contentpress | 1,384 | 1.69 | 23.28 | 26.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress::contentpress_style() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=contentpress
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress::contentpress_style() should not be called statically
- > GET request to /wp-admin/options-general.php?page=contentpress
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress_Admin::contentpress_admin_menu() should not be called statically
- > GET request to /wp-admin/options-general.php?page=contentpress
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress_Admin::register_contentpress() should not be called statically
- > GET request to /wp-admin/options-general.php?page=contentpress
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Contentpress_Admin::contentpress_html_page() should not be called statically
- 26 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=contentpress
- > Notice in wp-content/plugins/contentpress/options.php+165
Trying to access array offset on value of type bool
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
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/contentpress/contentpress.php
- 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/contentpress/view/tags.php on line 2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/contentpress/view/year.php on line 5
- > PHP Notice
Undefined variable: options in wp-content/plugins/contentpress/view/tags.php on line 2
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/contentpress/view/authors.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/contentpress/view/blog.php:2
- > PHP Notice
Undefined variable: options_year in wp-content/plugins/contentpress/view/year.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/contentpress/view/alphabet.php:6
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/contentpress/view/tags.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function contentpress_e() in wp-content/plugins/contentpress/options.php:2
- > PHP Notice
Undefined variable: terms in wp-content/plugins/contentpress/view/categories.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: contentpress, comments, page, shortcode, image...
contentpress/contentpress.php 92% from 13 tests
"Contentpress" version 1.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 181 characters long)
Code Analysis Passed 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 plugin953 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 92 | 30 | 711 |
CSS | 1 | 56 | 1 | 230 |
JavaScript | 2 | 0 | 10 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.24MB with 0.16MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 39.65KB | 14.03KB | ▼ 64.62% |
screenshot-1.png | 177.28KB | 46.99KB | ▼ 73.49% |
screenshot-3.png | 30.54KB | 10.75KB | ▼ 64.82% |