Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼10.53ms] Passed 4 tests
Analyzing server-side resources used by Promotator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.00 ▼4.80 |
Dashboard /wp-admin | 3.31 ▼0.03 | 44.61 ▼16.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.88 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.75 ▼19.10 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.23 ▼1.07 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Promotator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲74 | 13.26 ▼1.09 | 4.36 ▲2.34 | 42.19 ▼1.87 |
Dashboard /wp-admin | 2,223 ▲38 | 5.78 ▼0.03 | 105.19 ▲3.94 | 38.69 ▲0.76 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.03 ▲0.04 | 38.50 ▼3.80 | 35.56 ▼4.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.17 ▲5.61 | 660.08 ▲25.10 | 54.08 ▲6.19 |
Media Library /wp-admin/upload.php | 1,405 ▲23 | 4.28 ▲0.06 | 104.34 ▲5.59 | 44.83 ▲2.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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'roles' of non-object in wp-content/plugins/promotator/pages/dashboard.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/promotator/pages/dashboard.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/promotator/promotator.php:14
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/promotator/pages/dashboard.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== promotator ===
)
promotator/promotator.php Passed 13 tests
The main file in "Promotator" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
This plugin will help you to make mass mailings to a specific user group with a specific template including unique posts!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected446 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 28 | 14 | 142 |
Sass | 1 | 13 | 0 | 89 |
HTML | 2 | 0 | 4 | 86 |
CSS | 1 | 1 | 1 | 70 |
JavaScript | 1 | 6 | 0 | 59 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected