Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/pz-recentcomments/pz-recentcomments.php+124
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼58.56ms] Passed 4 tests
Analyzing server-side resources used by Pz-RecentComments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.43 ▼37.14 |
Dashboard /wp-admin | 2.11 ▼1.24 | 5.62 ▼55.04 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.81 ▼41.50 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.20 ▼100.56 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 5.99 ▼25.70 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_pz-recentcomments |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Pz-RecentComments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.34 ▼1.40 | 1.67 ▼0.44 | 40.70 ▼2.44 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▼0.04 | 100.08 ▼21.57 | 39.89 ▼4.22 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.01 | 35.87 ▼1.63 | 31.23 ▼7.23 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.22 ▲5.14 | 641.93 ▲2.15 | 62.35 ▲0.34 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.25 ▲0.03 | 97.66 ▼3.36 | 43.64 ▲2.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/pz-recentcomments/pz-recentcomments.php+124
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_pz-recentcomments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Everything seems fine, however 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 fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pz-recentcomments/pz-recentcomments.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 ("Download and install."), #2 ("Drag and drop widget."), #3 ("Settings."), #4 ("Look and feel.")
pz-recentcomments/pz-recentcomments.php Passed 13 tests
The primary PHP file in "Pz-RecentComments" version 1.3.2 is used by WordPress to initiate all plugin functionality
23 characters long description:
Recent comments widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin202 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 18 | 89 |
CSS | 1 | 1 | 1 | 75 |
PO File | 1 | 238 | 488 | 37 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 5.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 13.36KB | 7.15KB | ▼ 46.51% |
screenshot-3.png | 6.01KB | 3.40KB | ▼ 43.51% |
screenshot-2.png | 14.79KB | 8.22KB | ▼ 44.43% |
screenshot-1.png | 46.84KB | 21.61KB | ▼ 53.87% |