Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼299.48ms] Passed 4 tests
An overview of server-side resources used by Stop Web Crawlers
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 57.64 ▲3.57 |
Dashboard /wp-admin | 3.53 ▲0.13 | 40.70 ▲5.88 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 39.21 ▼1.13 |
Add New Post /wp-admin/post-new.php | 6.99 ▲0.03 | 99.07 ▼1,188.21 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 26.27 ▼12.14 |
Add New /wp-admin/admin.php?page=add-web-crawler | 3.38 | 24.24 |
Dashboard /wp-admin/admin.php?page=swc_main_menu | 3.38 | 24.50 |
List /wp-admin/admin.php?page=web-crawlers-list | 4.54 | 33.32 |
Server storage [IO: ▲0.54MB] [DB: ▲0.08MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 3 new tables, no new options
New tables |
---|
wp_swc_crawler_type |
wp_swc_crawlers |
wp_swc_crawlers_log |
Browser metrics Passed 4 tests
A check of browser resources used by Stop Web Crawlers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,808 ▲86 | 15.94 ▲0.19 | 5.75 ▼0.32 | 1.99 ▼0.14 |
Dashboard /wp-admin | 2,917 ▲56 | 6.18 ▼0.01 | 151.17 ▼25.67 | 188.92 ▲21.25 |
Posts /wp-admin/edit.php | 2,728 ▲37 | 2.96 ▼0.28 | 67.01 ▼4.00 | 180.89 ▼2.43 |
Add New Post /wp-admin/post-new.php | 1,742 ▲31 | 21.16 ▲0.40 | 443.30 ▼39.63 | 180.81 ▲6.04 |
Media Library /wp-admin/upload.php | 1,736 ▲38 | 5.53 ▼0.01 | 145.68 ▼2.96 | 266.16 ▲70.29 |
Add New /wp-admin/admin.php?page=add-web-crawler | 1,053 | 2.38 | 54.18 | 121.04 |
Dashboard /wp-admin/admin.php?page=swc_main_menu | 1,318 | 3.91 | 105.62 | 124.97 |
List /wp-admin/admin.php?page=web-crawlers-list | 1,615 | 2.47 | 56.65 | 127.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/stop-web-crawlers/includes/list-tables/page.php:10
- > PHP Fatal error
Uncaught Error: Class 'updater' not found in wp-content/plugins/stop-web-crawlers/includes/swc-db-upgrade/dbscript/_1_3_5.php:3
- > PHP Fatal error
Uncaught Error: Class 'updater' not found in wp-content/plugins/stop-web-crawlers/includes/swc-db-upgrade/dbscript/_1_3_6.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/stop-web-crawlers/includes/list-tables/class-swc-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/stop-web-crawlers/views/dashboard.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/stop-web-crawlers/views/list.php:10
- > PHP Fatal error
Uncaught Error: Class 'updater' not found in wp-content/plugins/stop-web-crawlers/includes/swc-db-upgrade/dbscript/_1_3_4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/stop-web-crawlers/views/addnew.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
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
9 plugin tags: spam, stop web crawlers, block bot, block bots, seo...
stop-web-crawlers/stop-web-crawlers.php Passed 13 tests
The entry point to "Stop Web Crawlers" version 1.3.6 is a PHP file that has certain tags in its header comment area
77 characters long description:
Blocks over 1400 known referer spammers from directly targeting your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin13,918 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 423 | 169 | 13,812 |
CSS | 1 | 9 | 0 | 55 |
Markdown | 1 | 47 | 0 | 51 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 10 | 71.43% |
Methods | 47 | |
▷ Static methods | 5 | 10.64% |
▷ Public methods | 24 | 51.06% |
▷ Protected methods | 7 | 14.89% |
▷ Private methods | 16 | 34.04% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/39balls_white.png | 0.57KB | 0.55KB | ▼ 3.24% |
images/dashboard_logo.png | 11.32KB | 4.77KB | ▼ 57.88% |
images/donate.en.png | 5.69KB | 2.78KB | ▼ 51.14% |
images/stop-web-crawlers.png | 1.09KB | 1.32KB | 0.00% |
images/WordPressMaintenance.png | 53.39KB | 18.42KB | ▼ 65.49% |