Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.57ms] Passed 4 tests
This is a short check of server-side resources used by Simple Revision Control
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.07 ▲2.43 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.39 ▼11.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 42.65 ▼5.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.91 ▲0.25 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.42 ▼0.76 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Revision Control
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.67 ▲0.53 | 2.04 ▲0.28 | 45.43 ▲6.95 |
Dashboard /wp-admin | 2,198 ▲24 | 5.58 ▼0.01 | 96.82 ▼4.18 | 40.67 ▼1.91 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.02 ▲0.06 | 34.64 ▼7.88 | 33.78 ▼2.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.16 ▼0.03 | 589.74 ▼7.95 | 53.02 ▲7.08 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.21 ▲0.03 | 99.50 ▼0.75 | 40.01 ▼2.37 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in simple-revision-control/assets to your readme.txt
simple-revision-control/simple-revision-control.php Passed 13 tests
This is the main PHP file of "Simple Revision Control" version 2.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Simple Revision Control is a plugin which gives the user simple control over the Revision functionality.
Code Analysis 97% from 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
Success! There were no dangerous files found in this plugin3,585 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 173 | 753 | 2,564 |
JavaScript | 7 | 54 | 103 | 420 |
SVG | 2 | 0 | 0 | 282 |
CSS | 6 | 23 | 9 | 181 |
Sass | 1 | 8 | 0 | 138 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 193)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 121.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 392.00 |
Average method complexity | 5.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 193.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 1 | 0.99% |
▷ Public methods | 66 | 65.35% |
▷ Protected methods | 4 | 3.96% |
▷ Private methods | 31 | 30.69% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
6 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/iworks/options/assets/styles/images/ui-icons_777620_256x240.png | 3.50KB | 3.82KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_444444_256x240.png | 3.50KB | 3.83KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_cc0000_256x240.png | 3.51KB | 3.84KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_ffffff_256x240.png | 3.54KB | 3.86KB | 0.00% |
includes/iworks/options/assets/styles/images/ui-icons_777777_256x240.png | 3.46KB | 3.80KB | 0.00% |