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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.59ms] Passed 4 tests
Analyzing server-side resources used by commonWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.37 ▼4.65 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.72 ▼11.78 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.45 ▼3.02 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 98.14 ▲1.09 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.49 ▲3.04 |
Server storage [IO: ▲0.14MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
commonwp_data |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for commonWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.72 ▼0.66 | 4.57 ▲2.35 | 43.72 ▼4.33 |
Dashboard /wp-admin | 2,259 ▲71 | 5.88 ▲0.90 | 94.25 ▼8.87 | 43.01 ▲3.96 |
Posts /wp-admin/edit.php | 2,140 ▲54 | 1.95 ▼0.06 | 35.85 ▼0.73 | 34.69 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,606 ▲64 | 22.20 ▲3.78 | 628.04 ▼5.34 | 35.30 ▼17.62 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.29 ▲0.13 | 91.04 ▼12.17 | 43.07 ▲0.16 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Trait 'dimadin\\WP\\Plugin\\commonWP\\Singleton' not found in wp-content/plugins/commonwp/inc/Process.php on line 25
- > PHP Fatal error
Trait 'dimadin\\WP\\Plugin\\commonWP\\Singleton' not found in wp-content/plugins/commonwp/inc/SRI.php on line 19
- > PHP Fatal error
Trait 'dimadin\\WP\\Plugin\\commonWP\\Singleton' not found in wp-content/plugins/commonwp/inc/Paths.php on line 19
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/commonwp/inc/WPCLI.php:53
- > PHP Fatal error
Trait 'dimadin\\WP\\Plugin\\commonWP\\Singleton' not found in wp-content/plugins/commonwp/inc/Main.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/commonwp/commonwp.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: performance, cdn, free cdn, jsdelivr, public cdn
commonwp/commonwp.php 92% from 13 tests
The main PHP script in "commonWP" version 1.1.0 is automatically included on every request by WordPress
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,017 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 587 | 2,567 | 1,913 |
XML | 3 | 16 | 22 | 104 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 15.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 89 | 71.20% |
▷ Public methods | 118 | 94.40% |
▷ Protected methods | 7 | 5.60% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 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
There are no PNG files in this plugin