Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▲2.59ms] Passed 4 tests
A check of server-side resources used by WP Assistant
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 44.72 ▲2.98 |
Dashboard /wp-admin | 3.96 ▲0.65 | 53.92 ▲2.41 |
Posts /wp-admin/edit.php | 4.02 ▲0.66 | 49.85 ▲2.78 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 97.83 ▲2.19 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 40.35 ▲5.23 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 68 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
wpa_options |
db_upgraded |
widget_theysaidso_widget |
wpa_install |
wpa_install_wp_version |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Assistant
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,287 ▲552 | 15.56 ▲1.26 | 1.83 ▼0.81 | 45.18 ▼3.17 |
Dashboard /wp-admin | 2,689 ▲501 | 7.22 ▲1.36 | 146.77 ▲43.07 | 51.03 ▲10.41 |
Posts /wp-admin/edit.php | 2,055 ▼34 | 2.51 ▲0.48 | 56.29 ▲16.18 | 32.52 ▼5.32 |
Add New Post /wp-admin/post-new.php | 1,805 ▲276 | 23.63 ▲0.49 | 616.30 ▼75.45 | 34.61 ▼27.02 |
Media Library /wp-admin/upload.php | 1,715 ▲324 | 4.83 ▲0.61 | 100.59 ▼1.61 | 51.91 ▲7.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- db_upgraded
- widget_theysaidso_widget
- wpa_options
- widget_recent-posts
- wpa_install
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- wpa_install_wp_version
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 23× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-assistant/inc/views/options.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\modules\\module' not found in wp-content/plugins/wp-assistant/modules/originalCss/originalCss.php:14
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\inc\\fields\\field' not found in wp-content/plugins/wp-assistant/inc/fields/source.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\inc\\fields\\field' not found in wp-content/plugins/wp-assistant/inc/fields/text.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\inc\\fields\\field' not found in wp-content/plugins/wp-assistant/inc/fields/media.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\modules\\module' not found in wp-content/plugins/wp-assistant/modules/dashboard/dashboard.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-assistant/modules/admin/views/options.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\inc\\fields\\field' not found in wp-content/plugins/wp-assistant/inc/fields/selectbox.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\modules\\module' not found in wp-content/plugins/wp-assistant/modules/templateEditor/templateEditor.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Assistant\\inc\\fields\\field' not found in wp-content/plugins/wp-assistant/inc/fields/textarea.php:9
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (General setting), #2 (Customize Admin menu.), #3 (Database optimization.)
wp-assistant/wp-assistant.php Passed 13 tests
Analyzing the main PHP file in "WP Assistant" version 0.4.3
71 characters long description:
This plugin to provide a convenient function when build WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin11,123 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 663 | 1,158 | 3,347 |
Sass | 2 | 238 | 3 | 2,980 |
CSS | 4 | 413 | 105 | 2,945 |
JavaScript | 10 | 186 | 257 | 1,494 |
PO File | 1 | 116 | 144 | 281 |
JSON | 1 | 0 | 0 | 38 |
Markdown | 1 | 17 | 0 | 38 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 1 | 3.23% |
▷ Concrete classes | 30 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 188 | |
▷ Static methods | 34 | 18.09% |
▷ Public methods | 177 | 94.15% |
▷ Protected methods | 2 | 1.06% |
▷ Private methods | 9 | 4.79% |
Functions | 26 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 26 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 compressed PNG files occupy 0.09MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 36.63KB | 37.39KB | 0.00% |
screenshot-2.png | 29.50KB | 29.62KB | 0.00% |
screenshot-3.png | 30.57KB | 31.13KB | 0.00% |