Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Database::plugin_activation() should not be called statically
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.60ms] Passed 4 tests
Server-side resources used by Code Analyzer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.66 ▼5.23 |
Dashboard /wp-admin | 3.45 ▲0.14 | 50.73 ▼2.24 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.33 ▼4.87 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 90.16 ▼2.05 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.15 ▲5.45 |
Code Analyzer /wp-admin/options-general.php?page=code-analyzer | 3.34 | 35.12 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Code Analyzer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.13 | 1.88 ▲0.18 | 42.07 ▼2.72 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.04 | 85.48 ▼10.78 | 42.78 ▲2.93 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.03 | 35.62 ▼2.97 | 36.38 ▲1.09 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 18.34 ▼4.61 | 647.45 ▼35.63 | 51.34 ▼15.08 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▲0.02 | 103.08 ▲2.12 | 43.31 ▲1.42 |
Code Analyzer /wp-admin/options-general.php?page=code-analyzer | 843 | 2.03 | 21.52 | 30.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Database::plugin_deactivation() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== code-analyzer ===
)
code-analyzer/code-analyzer.php Passed 13 tests
The primary PHP file in "Code Analyzer" version 0.2 is used by WordPress to initiate all plugin functionality
78 characters long description:
Simple search tool using regular expressions to find unwanted code in plugins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin763 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 147 | 131 | 680 |
CSS | 1 | 18 | 1 | 83 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 26 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 25.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin