Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼5.28ms] Passed 4 tests
An overview of server-side resources used by Partner Manager
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.18 ▼4.64 |
Dashboard /wp-admin | 3.43 ▲0.12 | 45.10 ▼4.52 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.73 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 81.10 ▼13.42 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.05 ▲3.35 |
Add New /wp-admin/post-new.php?post_type=partner | 3.41 | 47.49 |
All Partners /wp-admin/edit.php?post_type=partner | 3.39 | 35.96 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_partner-manager-widget |
Browser metrics Passed 4 tests
Checking browser requirements for Partner Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲146 | 14.05 ▼0.54 | 6.98 ▲4.90 | 40.49 ▼7.22 |
Dashboard /wp-admin | 2,233 ▲42 | 5.85 ▼0.05 | 102.46 ▼4.61 | 40.15 ▼0.17 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.05 ▲0.04 | 40.73 ▲1.17 | 35.18 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 23.36 ▲4.85 | 671.86 ▲21.08 | 60.06 ▲5.59 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.20 ▲0.05 | 94.49 ▼6.82 | 40.91 ▼7.97 |
Add New /wp-admin/post-new.php?post_type=partner | 1,673 | 3.64 | 62.34 | 34.19 |
All Partners /wp-admin/edit.php?post_type=partner | 1,080 | 1.95 | 29.71 | 30.46 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_partner-manager-widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/partner-manager/public/partials/partner-manager-shortcode-list.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/partner-manager/includes/class-partner-manager-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
7 plugin tags: sponsors, partners, shortcode, slider, carousel...
partner-manager/partner-manager.php Passed 13 tests
The main PHP script in "Partner Manager" version 1.0.0 is automatically included on every request by WordPress
60 characters long description:
Allows site administrators to manage the site's partners and
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin769 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 121 | 574 | 432 |
CSS | 2 | 31 | 7 | 204 |
Sass | 1 | 16 | 1 | 111 |
JavaScript | 2 | 1 | 0 | 22 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin