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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲1.15ms] Passed 4 tests
Analyzing server-side resources used by ConfigPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 46.21 ▲5.27 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.29 ▼2.28 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 54.45 ▲3.43 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.53 ▲0.53 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.76 ▲2.93 |
ConfigPress /wp-admin/options-general.php?page=configpress | 3.28 | 32.61 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by ConfigPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.26 ▼0.98 | 2.11 ▲0.47 | 45.14 ▼7.49 |
Dashboard /wp-admin | 2,210 ▲22 | 4.81 ▼0.10 | 112.78 ▼10.51 | 45.73 ▲0.37 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▼0.03 | 39.06 ▲0.21 | 41.69 ▲8.03 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.71 ▼4.99 | 700.94 ▲103.23 | 59.65 ▲9.14 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.22 ▲0.02 | 100.03 ▲0.24 | 42.95 ▲0.45 |
ConfigPress /wp-admin/options-general.php?page=configpress | 981 | 2.36 | 40.38 | 39.02 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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 everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Simple configurations example), #2 (Simple configurations example with error)
configpress/config-press.php 92% from 13 tests
The entry point to "ConfigPress" version 0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("configpress.php" instead of "config-press.php")
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 plugin7,958 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 853 | 950 | 7,178 |
PHP | 4 | 117 | 401 | 425 |
CSS | 2 | 59 | 38 | 323 |
PO File | 1 | 6 | 6 | 30 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing 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.41 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 17 | 58.62% |
▷ Protected methods | 12 | 41.38% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 71.47KB | 19.42KB | ▼ 72.82% |
screenshot-1.png | 65.04KB | 17.47KB | ▼ 73.14% |
stylesheet/images/logo.png | 0.73KB | 0.71KB | ▼ 2.28% |