Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼216.48ms] Passed 4 tests
An overview of server-side resources used by Column Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.87 ▼0.97 | 8.24 ▼18.83 |
Dashboard /wp-admin | 1.89 ▼1.18 | 14.96 ▼28.64 |
Posts /wp-admin/edit.php | 1.89 ▼1.22 | 4.16 ▼30.46 |
Add New Post /wp-admin/post-new.php | 1.89 ▼3.55 | 3.92 ▼785.31 |
Media Library /wp-admin/upload.php | 1.89 ▼1.12 | 4.04 ▼21.50 |
Column Posts /wp-admin/options-general.php?page=column-posts | 1.89 | 4.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_column posts |
cp_options |
Browser metrics Passed 4 tests
Checking browser requirements for Column Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,673 ▲72 | 15.73 ▲0.09 | 6.06 ▲0.70 | 93.16 ▲17.40 |
Dashboard /wp-admin | 2,935 ▲40 | 6.10 ▼0.06 | 117.27 ▼11.03 | 164.54 ▼7.07 |
Posts /wp-admin/edit.php | 2,745 ▲2 | 3.23 ▼0.01 | 61.41 ▼5.61 | 136.10 ▼4.07 |
Add New Post /wp-admin/post-new.php | 3,816 ▲1 | 18.86 ▼0.33 | 414.43 ▼32.01 | 164.76 ▲1.24 |
Media Library /wp-admin/upload.php | 1,757 ▲8 | 5.48 ▼0.01 | 138.35 ▼16.82 | 188.59 ▲2.74 |
Column Posts /wp-admin/options-general.php?page=column-posts | 1,602 | 2.90 | 61.60 | 165.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_column posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=column-posts
- > Deprecated in wp-content/plugins/column-posts/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; ColumnPost_Widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=column-posts
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method ColumnPost_Widget::register_widget() should not be called statically
- > GET request to /wp-admin/options-general.php?page=column-posts
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in ColumnPost_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=column-posts
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=column-posts
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=column-posts
- > Notice in wp-content/plugins/column-posts/includes/admin.php+208
Undefined property: ColumnPost_Admin::$base
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: posts, column posts, category, categories, excerpt...
column-posts/column-posts.php 92% from 13 tests
"Column Posts" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin862 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 128 | 130 | 590 |
PO File | 1 | 62 | 63 | 176 |
CSS | 1 | 7 | 11 | 56 |
JavaScript | 2 | 3 | 0 | 40 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 52 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.14% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/color.png | 0.87KB | 1.07KB | 0.00% |