Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▲3.20ms] Passed 4 tests
A check of server-side resources used by Cision Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.47 | 49.62 ▲8.32 |
Dashboard /wp-admin | 3.85 ▲0.54 | 48.49 ▼2.13 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 51.08 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 92.37 ▲6.86 |
Media Library /wp-admin/upload.php | 3.71 ▲0.48 | 40.46 ▲6.65 |
Cision Block /wp-admin/options-general.php?page=cision-block | 3.78 | 37.69 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_cision_block_widget |
cision_block_settings |
widget_recent-comments |
Browser metrics Passed 4 tests
Cision Block: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲39 | 14.27 ▼0.43 | 1.69 ▼0.24 | 39.86 ▼4.08 |
Dashboard /wp-admin | 2,203 ▲26 | 5.64 ▼0.01 | 98.13 ▼0.08 | 41.69 ▼1.43 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.13 ▲0.16 | 44.02 ▲4.76 | 35.18 ▲0.80 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.08 ▼0.04 | 682.31 ▲49.65 | 64.67 ▲16.16 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.43 ▲0.21 | 99.38 ▲0.06 | 42.97 ▲0.14 |
Cision Block /wp-admin/options-general.php?page=cision-block | 1,825 | 1.70 | 30.76 | 30.17 |
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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_cision_block_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CisionBlock\\Plugin\\Common\\Singleton' not found in wp-content/plugins/cision-block/src/Backend/Backend.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cision-block/src/Backend/templates/status.php:3
- > PHP Fatal error
Uncaught Error: Class 'CisionBlock\\Plugin\\Settings\\Settings' not found in wp-content/plugins/cision-block/src/Settings/Settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_page_templates() in wp-content/plugins/cision-block/src/Backend/templates/settings.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cision-block/src/Backend/templates/permalinks.php:2
- > PHP Fatal error
Uncaught Error: Class 'CisionBlock\\Plugin\\Http\\AbstractRequest' not found in wp-content/plugins/cision-block/src/Plugin/Http/RemoteRequest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'CisionBlock\\Plugin\\Http\\RequestInterface' not found in wp-content/plugins/cision-block/src/Plugin/Http/AbstractRequest.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cision-block/src/Backend/templates/tabs.php:2
- > PHP Fatal error
Uncaught Error: Class 'CisionBlock\\Plugin\\Widget\\Widget' not found in wp-content/plugins/cision-block/src/Widget/Widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'CisionBlock\\Plugin\\Http\\AbstractResponse' not found in wp-content/plugins/cision-block/src/Plugin/Http/Response.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #8 in cision-block/assets to your readme.txt
cision-block/bootstrap.php 85% from 13 tests
"Cision Block" version 2.9.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: The principal plugin file should be the same as the plugin slug ("cision-block.php" instead of "bootstrap.php")
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
No dangerous file extensions were detected3,510 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 372 | 1,063 | 3,141 |
JSON | 2 | 0 | 0 | 218 |
CSS | 2 | 0 | 1 | 103 |
JavaScript | 1 | 1 | 1 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 4 | 26.67% |
▷ Concrete classes | 11 | 73.33% |
▷ Final classes | 0 | 0.00% |
Methods | 165 | |
▷ Static methods | 27 | 16.36% |
▷ Public methods | 145 | 87.88% |
▷ Protected methods | 13 | 7.88% |
▷ Private methods | 7 | 4.24% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 39 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 39 | 100.00% |
▷ Public constants | 39 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/Backend/assets/icon-128x128.png | 10.44KB | 4.61KB | ▼ 55.82% |