Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼263.28ms] 75% from 4 tests
A check of server-side resources used by Cision Modules
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 1,089.06ms on /wp-admin/tools.php?page=cision-modules)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▲0.17 | 28.70 ▼7.74 |
Dashboard /wp-admin | 3.30 ▲0.24 | 58.00 ▲18.21 |
Posts /wp-admin/edit.php | 3.34 ▲0.24 | 42.47 ▲1.25 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 90.64 ▼1,039.80 |
Media Library /wp-admin/upload.php | 3.18 ▲0.17 | 32.48 ▼6.81 |
Cision modules /wp-admin/tools.php?page=cision-modules | 3.19 | 1,089.06 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cision_modules |
Browser metrics Passed 4 tests
An overview of browser requirements for Cision Modules
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲96 | 15.95 ▲0.49 | 7.88 ▼1.32 | 49.32 ▼2.21 |
Dashboard /wp-admin | 2,932 ▲79 | 5.94 ▲0.11 | 150.61 ▲7.36 | 119.52 ▲8.29 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.68 ▲0.00 | 73.01 ▲4.97 | 99.81 ▲10.58 |
Add New Post /wp-admin/post-new.php | 1,860 ▲7 | 19.28 ▲0.15 | 369.57 ▼13.30 | 110.81 ▼2.68 |
Media Library /wp-admin/upload.php | 1,780 ▲5 | 5.04 ▲0.01 | 160.27 ▼10.81 | 114.86 ▼5.75 |
Cision modules /wp-admin/tools.php?page=cision-modules | 1,280 | 2.09 | 61.59 | 60.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function CisionModules\\add_action() in wp-content/plugins/cision-modules/bootstrap.php:26
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cision-modules/src/views/settings.php:2
- > PHP Fatal error
Uncaught Error: Class 'CisionModules\\Plugin\\Singleton' not found in wp-content/plugins/cision-modules/src/Plugin.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
3 plugin tags: modules, ticker, cision
cision-modules/bootstrap.php 85% from 13 tests
"Cision Modules" version 1.0.1'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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cision-modules.php" instead of "bootstrap.php")
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,566 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 247 | 407 | 1,329 |
JSON | 2 | 0 | 0 | 202 |
CSS | 1 | 0 | 0 | 33 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 15.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 17 | 22.67% |
▷ Public methods | 68 | 90.67% |
▷ Protected methods | 4 | 5.33% |
▷ Private methods | 3 | 4.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 3 | 60.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected