Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼143.15ms] Passed 4 tests
This is a short check of server-side resources used by WPM Reviews
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 34.30 ▲13.07 |
Dashboard /wp-admin | 3.11 ▲0.06 | 41.33 ▼10.86 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 41.22 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 88.58 ▼563.44 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 30.06 ▼0.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WPM Reviews
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,843 ▲247 | 16.38 ▲0.79 | 12.94 ▲4.61 | 47.80 ▲0.26 |
Dashboard /wp-admin | 2,989 ▲52 | 5.83 ▼0.12 | 136.37 ▼10.82 | 109.17 ▼7.93 |
Posts /wp-admin/edit.php | 2,761 ▲22 | 2.72 ▲0.00 | 63.33 ▲0.17 | 90.56 ▼4.34 |
Add New Post /wp-admin/post-new.php | 1,891 ▲393 | 19.09 ▲0.32 | 370.89 ▲6.47 | 113.97 ▲5.71 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.02 ▼0.00 | 147.12 ▼15.37 | 125.57 ▲5.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× 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/wpm-reviews/wpm-reviews.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: reviews, wp, facebook reviews, yelp reviews, google reviews...
wpm-reviews/wpm-reviews.php 92% from 13 tests
"WPM Reviews" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 269 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin402 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 10 | 273 |
CSS | 1 | 18 | 0 | 76 |
JavaScript | 2 | 2 | 0 | 53 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
No PNG files were detected