Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/cp-author-online/ecpm-cao.php+59
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.79MB] [CPU: ▼28.59ms] Passed 4 tests
An overview of server-side resources used by CP Author Online
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.67 ▲5.47 |
Dashboard /wp-admin | 3.15 ▼0.15 | 26.91 ▼24.93 |
Posts /wp-admin/edit.php | 3.15 ▼0.20 | 26.83 ▼22.83 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.73 | 28.18 ▼58.17 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 27.79 ▼8.42 |
CP Author Online /wp-admin/options-general.php?page=ecpm_cao_settings_page | 3.15 | 27.71 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
ecpm_cao_settings |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for CP Author Online
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.26 ▼0.40 | 1.83 ▼0.21 | 45.80 ▲0.13 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.14 | 88.06 ▼2.34 | 39.95 ▼0.59 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.03 | 34.93 ▼1.82 | 34.06 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,538 ▼13 | 23.38 ▲0.39 | 687.97 ▼35.81 | 58.50 ▼13.40 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.08 | 97.40 ▼6.62 | 45.88 ▼1.70 |
CP Author Online /wp-admin/options-general.php?page=ecpm_cao_settings_page | 1,698 | 1.70 | 27.79 | 68.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/cp-author-online/ecpm-cao.php+65
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ecpm_cao_settings_page
- > Warning in wp-content/plugins/cp-author-online/ecpm-cao.php+65
Use of undefined constant APP_TD - assumed 'APP_TD' (this will throw an Error in a future version of PHP)
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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/cp-author-online/image_sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cp-author-online/ecpm-cao.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Plugin's settings), #2 (How it looks on a live site), #3 (Hover over online user), #4 (Hover over offline user), #5 (User can decide to hide online status)
cp-author-online/ecpm-cao.php 77% from 13 tests
"CP Author Online" version 1.8.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 224 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cp-author-online.php" instead of "ecpm-cao.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,399 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 115 | 31 | 689 |
CSS | 22 | 133 | 5 | 562 |
PO File | 1 | 59 | 61 | 148 |
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.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
41 compressed PNG files occupy 0.24MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cao-icons-inv-20.png | 3.37KB | 2.55KB | ▼ 24.49% |
images/easy-credit-payments.png | 3.13KB | 3.19KB | 0.00% |
images/paid-ad-features.png | 2.66KB | 2.76KB | 0.00% |
screenshot-1.png | 30.58KB | 16.55KB | ▼ 45.88% |
images/cp-author-online.png | 2.37KB | 2.37KB | 0.00% |