Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▼0.41MB] [CPU: ▼16.76ms] Passed 4 tests
Server-side resources used by Centinel API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.30 | 45.86 ▲4.77 |
Dashboard /wp-admin | 3.62 ▲0.27 | 50.92 ▼14.66 |
Posts /wp-admin/edit.php | 3.68 ▲0.31 | 50.95 ▲0.70 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.45 | 39.22 ▼57.09 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 39.72 ▲4.03 |
Centinel API Settings /wp-admin/options-general.php?page=centinel-api | 3.45 | 36.21 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 128 new files
Database: no new tables, 22 new options
New WordPress options |
---|
theysaidso_admin_options |
centinel_api_timeout |
db_upgraded |
centinel_api_private_key |
widget_recent-comments |
centinel_api_zip_password |
centinel_api_use_single_transaction |
centinel_api_dump_folder |
centinel_api_default_character_set |
centinel_api_dont_skip_comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Centinel API
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.13 | 1.63 ▼0.09 | 50.78 ▲5.44 |
Dashboard /wp-admin | 2,199 ▲22 | 5.51 ▼0.17 | 83.69 ▼17.60 | 39.13 ▼1.91 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.03 | 39.28 ▼0.59 | 36.11 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.15 ▼4.87 | 653.77 ▼3.10 | 61.55 ▲7.87 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.03 | 96.10 ▼16.02 | 44.00 ▼2.67 |
Centinel API Settings /wp-admin/options-general.php?page=centinel-api | 1,006 | 2.00 | 23.63 | 31.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/centinel-api/views/inputFields/text.php
- > /wp-content/plugins/centinel-api/views/inputFields/checkbox.php
- 96× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'CENTINELPATH/app/Admin/CentinelApiHelpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/centinel-api/app/Admin/CentinelApiInitializer.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Exception\\ExceptionInterface' not found in wp-content/plugins/centinel-api/vendor/dbDumper151/symfony/process/Exception/RuntimeException.php:19
- > PHP Warning
require_once(CENTINELPATH/app/Admin/CentinelApiHelpers.php): failed to open stream: No such file or directory in wp-content/plugins/centinel-api/app/Api/CentinelApiRouteManager.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'CENTINELPATH/app/Admin/CentinelApiZipChecker.php' (include_path='.:/usr/share/php') in wp-content/plugins/centinel-api/app/Admin/CentinelApiAdminRequestHandler.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/centinel-api/vendor/dbDumper151/symfony/process/Tests/ExecutableFinderTest.php:20
- > PHP Warning
stream_select(): supplied argument is not a valid stream resource in wp-content/plugins/centinel-api/vendor/dbDumper151/symfony/process/Tests/PipeStdinInStdoutStdErrStreamSelect.php on line 29
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Process\\Exception\\ExceptionInterface' not found in wp-content/plugins/centinel-api/vendor/dbDumper290/symfony/process/Exception/InvalidArgumentException.php:19
- > PHP Warning
Use of undefined constant CENTINELPATH - assumed 'CENTINELPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/centinel-api/app/Admin/CentinelApiInitializer.php on line 3
- > PHP Warning
stream_select(): supplied argument is not a valid stream resource in wp-content/plugins/centinel-api/vendor/dbDumper151/symfony/process/Tests/PipeStdinInStdoutStdErrStreamSelect.php on line 29
- > PHP Fatal error
require_once(): Failed opening required 'CENTINELPATH/app/Api/CentinelApiZipper.php' (include_path='.:/usr/share/php') in wp-content/plugins/centinel-api/app/Admin/CentinelApiZipChecker.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: logs, application log check, database backup, database
centinel-api/centinel-api.php 92% from 13 tests
Analyzing the main PHP file in "Centinel API" version 1.0.0
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 271 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin9,224 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 74 | 2,104 | 2,972 | 8,167 |
Markdown | 12 | 298 | 0 | 672 |
JSON | 6 | 0 | 0 | 358 |
XML | 1 | 3 | 0 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 165.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 76 | |
▷ Abstract classes | 4 | 5.26% |
▷ Concrete classes | 72 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 736 | |
▷ Static methods | 44 | 5.98% |
▷ Public methods | 642 | 87.23% |
▷ Protected methods | 51 | 6.93% |
▷ Private methods | 43 | 5.84% |
Functions | 70 | |
▷ Named functions | 4 | 5.71% |
▷ Anonymous functions | 66 | 94.29% |
Constants | 41 | |
▷ Global constants | 9 | 21.95% |
▷ Class constants | 32 | 78.05% |
▷ Public constants | 32 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin