Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.22ms] Passed 4 tests
Server-side resources used by Outranking Plugin Options
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.07 ▼1.10 |
Dashboard /wp-admin | 3.43 ▲0.12 | 44.38 ▼1.46 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 44.45 ▼1.06 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 81.17 ▼9.25 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 36.98 ▲2.35 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Outranking Plugin Options: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.17 ▼0.18 | 1.60 ▼0.09 | 37.08 ▼5.67 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.12 | 80.74 ▼4.74 | 38.30 ▼5.14 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 34.85 ▼1.08 | 31.74 ▼1.41 |
Add New Post /wp-admin/post-new.php | 6,466 ▲4,938 | 28.90 ▲5.72 | 993.59 ▲325.25 | 78.36 ▲25.86 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.01 | 93.57 ▼13.73 | 41.33 ▼7.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
include_once(ABSPATH/wp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 8
- > PHP Warning
include_once(): Failed opening 'ABSPATH/wp-admin/includes/media.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/outranking/api/api.php:30
- > PHP Warning
include_once(): Failed opening 'ABSPATH/wp-admin/includes/file.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 4
- > PHP Warning
include_once(ABSPATH/wp-includes/post.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 11
- > PHP Warning
include_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/outranking/inc/core.php on line 8
- > PHP Warning
include_once(): Failed opening 'ABSPATH/wp-includes/post.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/outranking/inc/core.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/outranking/outranking.php:16
- > PHP Warning
include_once(ABSPATH/wp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/outranking/inc/core.php on line 7
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
outranking/outranking.php Passed 13 tests
The principal PHP file in "Outranking Plugin Options" v. 1.1.3 is loaded by WordPress automatically on each request
34 characters long description:
Outranking Extension for WordPress
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
There were no executable files found in this plugin1,407 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 60 | 407 | 675 |
CSS | 1 | 72 | 14 | 359 |
JavaScript | 1 | 0 | 133 | 305 |
SVG | 6 | 0 | 0 | 68 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 3.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 24 | 82.76% |
▷ Anonymous functions | 5 | 17.24% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/outranking_white_long.png | 2.85KB | 1.88KB | ▼ 33.97% |
assets/images/outranking_dark_long.png | 1.54KB | 1.50KB | ▼ 2.35% |