Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.33ms] Passed 4 tests
Server-side resources used by Fakeblock
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.20 ▼1.71 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.39 ▼0.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.14 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.21 ▼9.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.30 ▲6.28 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Fakeblock: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲158 | 13.57 ▼0.84 | 5.26 ▲3.47 | 33.61 ▼7.84 |
Dashboard /wp-admin | 2,222 ▲31 | 5.83 ▼0.08 | 112.42 ▲6.61 | 40.84 ▲5.45 |
Posts /wp-admin/edit.php | 2,108 ▲22 | 2.06 ▲0.04 | 41.91 ▲4.96 | 36.66 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 23.39 ▲5.98 | 671.12 ▲6.61 | 52.52 ▲1.67 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.22 ▲0.07 | 107.67 ▲8.29 | 46.10 ▲1.46 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function fkblk_get() in wp-content/plugins/fakeblock/includes/views/blocked.php:2
- > 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
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
2 plugin tags: privacy, anti-piracy
fakeblock/fakeblock.php Passed 13 tests
The principal PHP file in "Fakeblock" v. 1.0.0 is loaded by WordPress automatically on each request
125 characters long description:
With less than 10 active installs, Fakeblock is the OC WordPress community's privacy software plugin that's also anti-piracy.
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
No dangerous file extensions were detected644 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 160 | 289 | 333 |
CSS | 8 | 12 | 8 | 186 |
JavaScript | 4 | 63 | 16 | 120 |
Markdown | 1 | 2 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.11% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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