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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.71ms] Passed 4 tests
An overview of server-side resources used by Pluglab
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.58 ▼0.18 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.93 ▼2.31 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 44.06 ▼1.25 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 75.56 ▼11.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.35 ▼4.03 |
Server storage [IO: ▲13.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Pluglab
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.57 ▼1.07 | 1.85 ▲0.06 | 42.32 ▼1.36 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▼0.05 | 111.35 ▲9.48 | 43.79 ▼0.37 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.04 | 39.43 ▼2.04 | 34.47 ▼3.38 |
Add New Post /wp-admin/post-new.php | 1,537 ▼131 | 23.33 ▲1.21 | 693.07 ▲65.33 | 54.00 ▼1.35 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.24 ▲0.03 | 97.55 ▼2.86 | 43.71 ▲0.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pluglab/includes/customizer/iconsnew.php
- > /wp-content/plugins/pluglab/includes/customizer/icons.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'PL_Theme_Corposet_Layout' not found in wp-content/plugins/pluglab/includes/theme/corposet/class-pl-theme-corposet-load.php:3
- > PHP Fatal error
Uncaught Error: Class 'PL_Theme_Bizstrait_Layout' not found in wp-content/plugins/pluglab/includes/theme/bizstrait/class-pl-theme-bizstrait-load.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluglab/includes/customizer/pl-help-functions.php:78
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluglab/includes/theme/biznol/pl-default-functions.php:261
- > PHP Fatal error
Uncaught Error: Class 'PL_Theme_Shapro_Layout' not found in wp-content/plugins/pluglab/includes/theme/shapro/class-pl-theme-shapro-load.php:3
- > PHP Fatal error
Uncaught Error: Class 'PL_Theme_Biznol_Layout' not found in wp-content/plugins/pluglab/includes/theme/biznol/class-pl-theme-biznol-load.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluglab/includes/theme/bizstrait/pl-default-functions.php:258
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluglab/includes/theme/shapro/pl-default-functions.php:199
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pluglab/includes/theme/corposet/pl-default-functions.php:253
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: service, testimonial, header, callout, customizer...
pluglab/pluglab.php 92% from 13 tests
This is the main PHP file of "Pluglab" version 0.2.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 156 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
Good job! No executable or dangerous file extensions detected42,641 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 1,623 | 2,090 | 16,531 |
SVG | 4 | 0 | 12 | 10,130 |
CSS | 15 | 3,227 | 94 | 9,789 |
JavaScript | 12 | 1,587 | 636 | 6,191 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 19.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 309 | |
▷ Static methods | 18 | 5.83% |
▷ Public methods | 292 | 94.50% |
▷ Protected methods | 1 | 0.32% |
▷ Private methods | 16 | 5.18% |
Functions | 215 | |
▷ Named functions | 66 | 30.70% |
▷ Anonymous functions | 149 | 69.30% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/circle.png | 29.02KB | 4.83KB | ▼ 83.36% |
assets/images/circle2.png | 29.00KB | 4.77KB | ▼ 83.56% |
assets/images/signature.png | 2.00KB | 2.04KB | 0.00% |
assets/images/circle1.png | 30.31KB | 5.09KB | ▼ 83.20% |