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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.71ms] Passed 4 tests
Server-side resources used by WP-Post-Meta-Revisions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.29 ▲1.97 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.97 ▼13.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.68 ▲0.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.18 ▼3.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.42 ▲6.35 |
Server storage [IO: ▲0.50MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Post-Meta-Revisions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.68 ▲0.51 | 1.71 ▲0.02 | 43.60 ▲4.78 |
Dashboard /wp-admin | 2,198 ▲23 | 5.62 ▼0.03 | 86.87 ▼16.10 | 37.18 ▼1.96 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.95 ▼0.01 | 36.40 ▼3.14 | 31.72 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼12 | 22.95 ▼0.31 | 626.35 ▲8.24 | 49.05 ▼19.03 |
Media Library /wp-admin/upload.php | 1,400 ▲6 | 4.12 ▼0.04 | 117.57 ▲22.00 | 45.02 ▲4.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wp-post-meta-revisions/tests/test-meta-revisions.php:15
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/wp-post-meta-revisions/tests/bootstrap.php on line 16
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-post-meta-revisions/tests/bootstrap.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-meta-revisions/wp-post-meta-revisions.php:32
- > PHP Fatal error
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)
No browser errors were detected
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:
- Screenshots: These screenshots need descriptions #1, #2 in wp-post-meta-revisions/assets to your readme.txt
wp-post-meta-revisions/wp-post-meta-revisions.php Passed 13 tests
The main file in "WP-Post-Meta-Revisions" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
19 characters long description:
Post Meta Revisions
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
Everything looks great! No dangerous files found in this plugin498 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 127 | 317 | 369 |
Bourne Shell | 1 | 15 | 5 | 58 |
XML | 2 | 2 | 0 | 41 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 3 | 16.67% |
▷ Private methods | 1 | 5.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 32.17KB | 9.56KB | ▼ 70.28% |
assets/icon-256x256.png | 115.94KB | 29.90KB | ▼ 74.21% |