Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.73ms] Passed 4 tests
An overview of server-side resources used by No Markup Please
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.96 ▼2.19 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.61 ▼3.39 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.97 ▼12.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.54 ▼9.12 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.49 ▼0.37 |
No Markup Please /wp-admin/options-general.php?page=nmp_settings | 3.22 | 39.31 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by No Markup Please
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.25 ▼0.37 | 2.03 ▲0.22 | 44.53 ▼1.03 |
Dashboard /wp-admin | 2,199 ▲19 | 5.57 ▼0.04 | 84.13 ▼8.39 | 38.20 ▼4.71 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.16 ▲0.18 | 34.27 ▼8.16 | 35.62 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,529 ▼2 | 23.41 ▲0.13 | 694.32 ▲9.47 | 62.93 ▲7.99 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.26 ▲0.06 | 98.47 ▼3.76 | 45.41 ▼1.33 |
No Markup Please /wp-admin/options-general.php?page=nmp_settings | 823 | 2.00 | 27.23 | 24.73 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 | 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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-markup-please/no-markup-please.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: comments, code, stop code in comments, markup, no markup
no-markup-please/no-markup-please.php Passed 13 tests
This is the main PHP file of "No Markup Please" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Stop visitors posting too much code in comments
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin98 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 26 | 98 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 46.51KB | 13.58KB | ▼ 70.81% |
screenshot-1.png | 40.31KB | 12.06KB | ▼ 70.08% |