Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.07MB] [CPU: ▼13.96ms] Passed 4 tests
An overview of server-side resources used by SOWPROG Events
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 15.82 ▼25.15 |
Dashboard /wp-admin | 3.42 ▲0.12 | 45.61 ▼9.62 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 44.60 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 83.97 ▼20.91 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.09 ▲2.85 |
SOWPROG /wp-admin/tools.php?page=sowprog-events/sowprog_events_configuration.php | 3.31 | 32.02 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 75 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_sp_event_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SOWPROG Events
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.31 ▼0.92 | 4.23 ▲2.28 | 43.60 ▼0.94 |
Dashboard /wp-admin | 2,213 ▲25 | 5.85 ▲0.73 | 104.81 ▼5.02 | 44.49 ▼1.19 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.04 | 34.94 ▲0.00 | 34.49 ▼0.81 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.36 ▲0.13 | 636.78 ▼69.35 | 62.04 ▲9.54 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.12 ▼0.08 | 94.11 ▼8.43 | 41.11 ▼3.21 |
SOWPROG /wp-admin/tools.php?page=sowprog-events/sowprog_events_configuration.php | 871 | 2.02 | 24.52 | 21.94 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_sp_event_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sowprog-events/sowprog_events_configuration.php:236
- > 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 93% 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
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== sowprog-events ===
)
sowprog-events/sowprog_wordpress_events.php 92% from 13 tests
"SOWPROG Events" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("sowprog-events.php" instead of "sowprog_wordpress_events.php")
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
Everything looks great! No dangerous files found in this plugin5,545 lines of code in 69 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 48 | 918 | 814 | 2,755 |
CSS | 9 | 149 | 210 | 1,351 |
SVG | 1 | 0 | 0 | 565 |
PHP | 5 | 127 | 60 | 547 |
Markdown | 6 | 190 | 0 | 327 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 14.75 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected