Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.09MB] [CPU: ▼19.88ms] Passed 4 tests
Analyzing server-side resources used by WP Review Schema
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 38.57 ▼3.82 |
Dashboard /wp-admin | 3.60 ▲0.29 | 46.65 ▼9.16 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.80 ▼7.26 |
Add New Post /wp-admin/post-new.php | 4.85 ▼1.05 | 50.43 ▼59.26 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 34.43 ▼1.90 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
bsf_review |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Review Schema
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,967 ▲206 | 13.88 ▼0.52 | 11.66 ▲9.66 | 44.59 ▲1.15 |
Dashboard /wp-admin | 2,215 ▲35 | 5.55 ▲0.01 | 82.01 ▼16.94 | 39.87 ▼6.88 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.19 ▲0.18 | 35.57 ▼0.46 | 33.64 ▼7.12 |
Add New Post /wp-admin/post-new.php | 6,352 ▲4,826 | 18.87 ▼4.51 | 935.27 ▲282.77 | 67.50 ▲13.56 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.19 ▲0.05 | 98.32 ▼8.54 | 39.41 ▼7.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- bsf_review
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-review-schema/admin/index.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-review-schema/init.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-review-schema/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-review-schema/wp-review-schema.php:15
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
wp-review-schema/wp-review-schema.php Passed 13 tests
The principal PHP file in "WP Review Schema" v. 1.0.0 is loaded by WordPress automatically on each request
117 characters long description:
The Ultimate Review Schema for WordPress. Improve your CTR & SEO Rankings. Add Review Schema And Look Good in Google.
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 detected2,047 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 62 | 983 |
CSS | 6 | 40 | 97 | 788 |
JavaScript | 8 | 0 | 82 | 268 |
SVG | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 5.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
13 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/code-in-single.php.png | 6.42KB | 2.34KB | ▼ 63.55% |
admin/images/icon.png | 0.79KB | 0.87KB | 0.00% |
images/gray.png | 0.64KB | 0.67KB | 0.00% |
images/gray-32.png | 1.43KB | 1.57KB | 0.00% |
wpdeveloper-logo-2.png | 15.28KB | 5.27KB | ▼ 65.52% |