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
Installer ran successfully
Server metrics [RAM: ▲0.41MB] [CPU: ▼1.35ms] Passed 4 tests
This is a short check of server-side resources used by Speedwapp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.43 | 44.19 ▲0.61 |
Dashboard /wp-admin | 3.75 ▲0.44 | 48.15 ▼6.85 |
Posts /wp-admin/edit.php | 3.80 ▲0.44 | 52.07 ▲2.50 |
Add New Post /wp-admin/post-new.php | 6.27 ▲0.38 | 90.84 ▼1.65 |
Media Library /wp-admin/upload.php | 3.61 ▲0.37 | 40.26 ▲4.34 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Speedwapp_Settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Speedwapp
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.19 ▼1.20 | 1.70 ▼0.41 | 36.46 ▼11.38 |
Dashboard /wp-admin | 2,231 ▲40 | 4.87 ▼1.02 | 108.21 ▲2.75 | 38.49 ▼8.02 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.01 ▲0.01 | 38.97 ▲5.73 | 35.51 ▲0.39 |
Add New Post /wp-admin/post-new.php | 2,878 ▲1,345 | 18.69 ▼4.46 | 641.77 ▼43.71 | 98.19 ▲33.79 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.21 ▼0.04 | 96.56 ▼4.84 | 41.21 ▼0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- Speedwapp_Settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/speedwapp/speedwapp.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/speedwapp/modules/views/load-editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/Post.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/speedwapp/modules/views/switch-editor.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/SpeedwappSettings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/includes/SpeedwappManager.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/speedwapp/modules/views/editor-full-screen.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/speedwapp/modules/SpeedwappAjax.php:12
- > PHP Fatal error
Uncaught Error: Class 'Speedwapp_Module' not found in wp-content/plugins/speedwapp/modules/SpeedwappAdmin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/speedwapp/modules/views/switch-block-editor.php:4
- > 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 97% 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 to be fixed:
- Contributors: Contributors not specified
speedwapp/speedwapp.php Passed 13 tests
"Speedwapp" version 0.9.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
Speedwapp for Wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,680 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 534 | 1,012 | 1,978 |
JavaScript | 3 | 80 | 59 | 420 |
CSS | 3 | 34 | 5 | 213 |
Markdown | 1 | 0 | 0 | 57 |
SVG | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 148 | |
▷ Static methods | 18 | 12.16% |
▷ Public methods | 123 | 83.11% |
▷ Protected methods | 15 | 10.14% |
▷ Private methods | 10 | 6.76% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.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
12 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
modules/img/WP_Widget_Categories.png | 1.20KB | 0.81KB | ▼ 32.16% |
modules/img/WP_Widget_Tag_Cloud.png | 3.08KB | 1.35KB | ▼ 56.26% |
modules/img/WP_Widget_Calendar.png | 1.00KB | 0.58KB | ▼ 42.02% |
modules/img/WP_Widget_Text.png | 2.45KB | 1.09KB | ▼ 55.47% |
modules/img/WP_Widget_Recent_Posts.png | 1.55KB | 0.65KB | ▼ 57.90% |