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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.55ms] Passed 4 tests
Server-side resources used by WP Compress for MainWP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.51 ▲3.15 |
Dashboard /wp-admin | 3.32 ▼0.02 | 46.68 ▼15.54 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.32 ▼4.50 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 80.08 ▼24.33 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.25 ▲2.17 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Compress for MainWP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲96 | 13.71 ▼0.65 | 1.83 ▲0.02 | 42.99 ▼0.76 |
Dashboard /wp-admin | 2,251 ▲69 | 5.01 ▲0.10 | 120.63 ▲15.16 | 41.81 ▼3.00 |
Posts /wp-admin/edit.php | 2,129 ▲37 | 2.58 ▲0.52 | 34.98 ▼11.77 | 32.64 ▼4.25 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.41 ▲5.16 | 668.66 ▲64.85 | 74.43 ▲9.45 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.28 ▲0.07 | 106.88 ▲7.52 | 45.99 ▲1.58 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-compress-mainwp/wp-compress-main-wp.php:14
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Invalid URI found ("")
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Contributors: The plugin contributors field is missing
- Contributors: Please add at least on tag
wp-compress-mainwp/wp-compress-main-wp.php 92% from 13 tests
"WP Compress for MainWP" version 6.10.07's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-compress-mainwp.php" instead of "wp-compress-main-wp.php")
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
Success! There were no dangerous files found in this plugin5,993 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,078 | 442 | 4,225 |
CSS | 3 | 45 | 0 | 1,111 |
PHP | 3 | 170 | 49 | 467 |
LESS | 1 | 52 | 0 | 190 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 15.33 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin