Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.19ms] Passed 4 tests
This is a short check of server-side resources used by Plugin Compatibility Table
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 36.38 ▼6.34 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.42 ▼6.94 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.96 ▼1.30 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 85.60 ▼9.99 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 32.38 ▼1.50 |
Plugin Compatibility /wp-admin/tools.php?page=plcom | 3.31 | 35.24 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
Just a few items left to fix
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/plugin-compatibility/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/plugin-compatibility/admin/img/wpcompatible-logo.png\357\200\272Zone.Identifier"
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Compatibility Table
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲94 | 13.76 ▼0.63 | 8.09 ▲6.11 | 37.83 ▼6.46 |
Dashboard /wp-admin | 2,206 ▲26 | 5.58 ▼0.08 | 95.11 ▲0.21 | 42.58 ▼0.72 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.96 ▼0.19 | 40.61 ▼1.22 | 37.96 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.20 ▼0.40 | 692.94 ▲28.26 | 61.21 ▲10.37 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.18 ▼0.07 | 97.88 ▼1.39 | 41.82 ▼3.06 |
Plugin Compatibility /wp-admin/tools.php?page=plcom | 1,429 | 2.01 | 26.77 | 50.02 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/plugin-compatibility/public/partials/wp-compatible-public-display.php
- > /wp-content/plugins/plugin-compatibility/admin/partials/wp-compatible-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (How to use Plugin Compatibility Plugin), #2 (Plugin Compatibility Plugin Screenshot)
plugin-compatibility/plugin-compatibility.php 92% from 13 tests
The primary PHP file in "Plugin Compatibility Table" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected792 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 160 | 548 | 305 |
CSS | 2 | 42 | 8 | 291 |
Sass | 1 | 37 | 0 | 190 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/wpcompatible-logo.png | 18.45KB | 8.67KB | ▼ 53.04% |