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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.87ms] Passed 4 tests
A check of server-side resources used by Black Lives Matter Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.19 ▼13.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.16 ▼5.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.09 ▼1.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 91.15 ▼3.63 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.07 ▼1.28 |
Black Lives Matter Widget /wp-admin/options-general.php?page=black-lives-matter | 3.22 | 36.27 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Black Lives Matter Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 13.24 ▼1.06 | 1.64 ▼0.10 | 51.51 ▲4.39 |
Dashboard /wp-admin | 2,204 ▲16 | 5.80 ▲0.90 | 101.58 ▼2.18 | 44.66 ▲1.88 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.03 | 39.50 ▲1.41 | 35.23 ▲1.65 |
Add New Post /wp-admin/post-new.php | 1,537 ▼0 | 23.08 ▼0.11 | 584.79 ▼96.94 | 51.37 ▼1.50 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.01 | 93.63 ▼16.05 | 42.58 ▼4.88 |
Black Lives Matter Widget /wp-admin/options-general.php?page=black-lives-matter | 972 | 2.07 | 24.75 | 65.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/black-lives-matter/index.php:30
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=black-lives-matter
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=black-lives-matter 192 The specified value "#000" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% 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
4 plugin tags: solidarity message, blacklivesmatter, widget, alllivesmatter
black-lives-matter/index.php 85% from 13 tests
The main PHP file in "Black Lives Matter Widget" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("black-lives-matter.php" instead of "index.php")
- 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 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected320 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 24 | 113 |
SVG | 1 | 0 | 0 | 99 |
CSS | 1 | 0 | 0 | 90 |
Markdown | 1 | 9 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected