Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.15ms] Passed 4 tests
Server-side resources used by Hide Archive Label
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 34.37 ▼5.42 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.47 ▼15.45 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.95 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.65 ▼2.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.43 ▼1.18 |
Hide Archive Label /wp-admin/tools.php?page=hide-archive-label | 3.29 | 31.76 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide Archive Label
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.67 ▲0.78 | 1.70 ▲0.01 | 38.68 ▼4.47 |
Dashboard /wp-admin | 2,198 ▲23 | 5.60 ▼0.09 | 93.73 ▼16.70 | 44.36 ▼0.39 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.97 ▲0.03 | 40.77 ▲2.71 | 38.04 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 23.61 ▲0.47 | 582.71 ▼70.18 | 51.29 ▼0.12 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.22 ▼0.01 | 96.51 ▼0.70 | 44.46 ▲1.76 |
Hide Archive Label /wp-admin/tools.php?page=hide-archive-label | 1,318 | 2.20 | 47.26 | 57.77 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/hide-archive-label/inc/partials/admin-display.php
- > /wp-content/plugins/hide-archive-label/inc/partials/dashboard-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/hide-archive-label/inc/partials/footer.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hide-archive-label/inc/partials/sidebar.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% 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 your attention:
- Screenshots: A description for screenshot #1 is required in hide-archive-label/assets to your readme.txt
hide-archive-label/class-hide-archive-label.php 77% from 13 tests
Analyzing the main PHP file in "Hide Archive Label" version 1.5.2
The following require your attention:
- Domain Path: Use only dashes and lowercase characters for the domain path ("domain/path")
- Main file name: The principal plugin file should be the same as the plugin slug ("hide-archive-label.php" instead of "class-hide-archive-label.php")
- Description: Keep the plugin description shorter than 140 characters (currently 226 characters long)
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
Everything looks great! No dangerous files found in this plugin1,203 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 148 | 21 | 727 |
PHP | 7 | 60 | 105 | 443 |
JavaScript | 2 | 13 | 5 | 32 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 9 | 39.13% |
▷ Public methods | 23 | 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 | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/free-plugin-246x116.png | 8.01KB | 3.81KB | ▼ 52.42% |
images/premium-plugin-246x116.png | 9.01KB | 4.16KB | ▼ 53.83% |