Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.30MB] [CPU: ▼16.51ms] Passed 4 tests
Analyzing server-side resources used by Content Enhancer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 32.58 ▼7.83 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.65 ▼0.00 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.83 ▼2.31 |
Add New Post /wp-admin/post-new.php | 4.63 ▼1.26 | 40.84 ▼54.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.34 ▼1.70 |
Content Enhancer /wp-admin/options-general.php?page=content_enhancer_menu | 3.23 | 35.04 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Content Enhancer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.15 ▼0.42 | 1.99 ▲0.06 | 42.71 ▼4.82 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.05 | 95.95 ▲4.02 | 42.99 ▲0.73 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.01 ▼0.02 | 39.59 ▼5.56 | 36.76 ▼2.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.42 ▼0.08 | 672.53 ▲5.34 | 53.06 ▼0.35 |
Media Library /wp-admin/upload.php | 1,401 ▲4 | 4.24 ▼0.00 | 101.72 ▼1.05 | 41.70 ▼4.63 |
Content Enhancer /wp-admin/options-general.php?page=content_enhancer_menu | 881 | 1.99 | 28.78 | 28.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-enhancer/content-enhancer.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: snippets, adsense, shortcodes, javascript, html...
content-enhancer/content-enhancer.php Passed 13 tests
The main PHP file in "Content Enhancer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
110 characters long description:
This plugin allows you to insert html/javascript code into your post's content in a variety of different ways.
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
There were no executable files found in this plugin175 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 57 | 175 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected