Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/rating-writing/classes/meta-boxes.class.php+82
Methods with the same name as their class will not be constructors in a future version of PHP; MceButton has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼49.23ms] Passed 4 tests
An overview of server-side resources used by Rating-Writing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.10 ▼33.19 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.50 ▼42.61 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.24 ▼38.60 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 7.04 ▼82.50 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.36 ▼31.86 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Rating-Writing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.47 ▲0.10 | 1.96 ▲0.31 | 44.26 ▲4.43 |
Dashboard /wp-admin | 2,218 ▲27 | 5.85 ▼0.05 | 102.92 ▲3.43 | 41.63 ▼3.22 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.04 ▲0.04 | 35.29 ▼1.40 | 32.12 ▼1.09 |
Add New Post /wp-admin/post-new.php | 6,541 ▲5,007 | 19.06 ▼4.06 | 917.44 ▲237.05 | 74.15 ▲19.35 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.09 ▼0.10 | 100.21 ▲1.19 | 42.23 ▼2.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/rating-writing/classes/meta-boxes.class.php+82
Methods with the same name as their class will not be constructors in a future version of PHP; MceButton has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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)
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
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rating-writing/includes/controller.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/rating-writing/includes/tag.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rating-writing/includes/meta-boxes.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rating-writing/rating-writing.php:41
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin-1), #2 (Admin-2), #3 (Admin-3), #4 (Browser)
rating-writing/rating-writing.php 92% from 13 tests
The entry point to "Rating-Writing" version 1.2.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected518 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 44 | 65 | 306 |
CSS | 2 | 23 | 0 | 151 |
JavaScript | 1 | 0 | 0 | 35 |
PO File | 1 | 4 | 4 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
5 compressed PNG files occupy 0.05MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/images/rw_btn.png | 0.30KB | 0.23KB | ▼ 25.48% |
screenshot-4.png | 18.94KB | 18.80KB | ▼ 0.74% |
screenshot-3.png | 9.24KB | 9.35KB | 0.00% |
screenshot-1.png | 19.84KB | 19.51KB | ▼ 1.70% |
screenshot-2.png | 7.47KB | 7.35KB | ▼ 1.63% |