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.01MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by Edit Lock
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.62 ▲0.63 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.50 ▼10.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.35 ▼2.07 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.81 ▼11.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 35.52 ▼0.66 |
Edit Lock /wp-admin/options-general.php?page=edit-lock/edit-lock.php | 3.22 | 31.10 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Edit Lock
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.22 ▼0.50 | 1.72 ▲0.03 | 46.08 ▼0.73 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.09 | 92.61 ▲8.20 | 41.44 ▼1.25 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.11 ▲0.09 | 34.23 ▼6.87 | 35.35 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.57 ▲0.67 | 619.70 ▼89.89 | 46.21 ▼10.40 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.10 | 96.57 ▼2.77 | 42.39 ▼0.90 |
Edit Lock /wp-admin/options-general.php?page=edit-lock/edit-lock.php | 886 | 2.03 | 22.74 | 31.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 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/edit-lock/edit-lock.php:113
- > 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)
No browser issues were found
Optimizations
Plugin configuration 96% 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
4 plugin tags: disable post edit, wp-admin, posts, security
edit-lock/edit-lock.php 92% from 13 tests
The entry point to "Edit Lock" version 1.0.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 304 characters long)
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
Everything looks great! No dangerous files found in this plugin434 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 41 | 120 | 334 |
PO File | 1 | 30 | 50 | 100 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 17 | |
▷ Static methods | 4 | 23.53% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 2 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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
There are no PNG files in this plugin