Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼42.91ms] Passed 4 tests
An overview of server-side resources used by WP MJPostKiller
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 45.66 ▲4.87 |
Dashboard /wp-admin | 3.00 ▼0.35 | 25.73 ▼46.62 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 27.50 ▼26.20 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.89 | 23.59 ▼85.96 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 25.17 ▼12.86 |
فیلترینگ MJ+ /wp-admin/admin.php?page=mjmenu | 3.00 | 40.30 |
تنظیمات /wp-admin/admin.php?page=mj_admin | 3.00 | 27.38 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP MJPostKiller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.43 ▲0.00 | 1.88 ▲0.18 | 44.13 ▼1.24 |
Dashboard /wp-admin | 2,222 ▲51 | 5.65 ▼0.05 | 96.34 ▲3.53 | 47.46 ▲2.47 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.04 | 35.63 ▼5.18 | 41.39 ▲4.80 |
Add New Post /wp-admin/post-new.php | 1,567 ▲41 | 23.38 ▲5.72 | 646.91 ▼58.89 | 69.52 ▲10.90 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.20 ▼0.03 | 128.22 ▲17.04 | 65.47 ▲20.76 |
فیلترینگ MJ+ /wp-admin/admin.php?page=mjmenu | 821 | 2.01 | 23.85 | 42.21 |
تنظیمات /wp-admin/admin.php?page=mj_admin | 803 | 2.05 | 25.41 | 33.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mj_admin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
Please fix the following
- 2× 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/mjpostkiller/mj_plugin.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mjpostkiller/mj_admin_setting.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: prevent spam post, postkiller, prevent posts with forbidden title, prevent spam, kill posts
mjpostkiller/mj_plugin.php 85% from 13 tests
Analyzing the main PHP file in "WP MJPostKiller" version v0.0.0.1...
Please take the time to fix the following:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "v0.0.0.1...")
- Main file name: Name the main plugin file the same as the plugin slug ("mjpostkiller.php" instead of "mj_plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected52 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 12 | 7 | 52 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin