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: ▼7.59ms] Passed 4 tests
An overview of server-side resources used by Page Speed Insights
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.61 ▼3.75 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.42 ▼11.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.34 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.84 ▼13.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.32 ▼1.99 |
Page Speed Insights /wp-admin/tools.php?page=itman-page-speed-insights | 3.26 | 39.06 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_itman_page_speed_insights |
New WordPress options |
---|
itps_status |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
itps_db_version |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Page Speed Insights
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 14.78 ▲0.41 | 1.96 ▲0.13 | 44.05 ▲1.30 |
Dashboard /wp-admin | 2,251 ▲71 | 5.87 ▲0.20 | 100.09 ▲8.09 | 43.04 ▼1.22 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 2.44 ▲0.42 | 33.43 ▼9.04 | 32.95 ▼6.51 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.29 ▼0.41 | 613.89 ▼49.16 | 52.41 ▼12.31 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.44 ▲0.24 | 98.15 ▼7.78 | 44.08 ▼1.65 |
Page Speed Insights /wp-admin/tools.php?page=itman-page-speed-insights | 911 | 3.26 | 42.99 | 28.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% 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 0% 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 fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/itman-page-speed-insights/itman-page-speed-insights.php
- > /wp-content/plugins/itman-page-speed-insights/admin/admin.php
- 2× 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/itman-page-speed-insights/includes/dashboardWidget.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/itman-page-speed-insights/admin/settings-page.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=itman-page-speed-insights
- > Javascript (severe) in unknown
https://www.gstatic.com/charts/51/js/jsapi_compiled_default_module.js 143:187 Uncaught Error: Container is not defined
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI ("")
itman-page-speed-insights/itman-page-speed-insights.php Passed 13 tests
The main PHP script in "Page Speed Insights" version 1.0.6 is automatically included on every request by WordPress
82 characters long description:
Displays and measures page performance according to the Google PageSpeed Insights.
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
Success! There were no dangerous files found in this plugin582 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 132 | 105 | 400 |
PO File | 1 | 28 | 31 | 97 |
JavaScript | 1 | 7 | 3 | 52 |
CSS | 1 | 6 | 6 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/author.png | 33.04KB | 20.52KB | ▼ 37.88% |
images/icon-512x512.png | 54.54KB | 21.90KB | ▼ 59.85% |