Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.43ms] Passed 4 tests
A check of server-side resources used by Prevent Indexing on Non-Live Sites
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.11 ▼6.87 |
Dashboard /wp-admin | 3.33 ▲0.03 | 57.15 ▲7.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.25 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.97 ▼5.15 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.25 ▼0.48 |
Prevent Indexing /wp-admin/options-general.php?page=pi_prevent-indexing-settings | 3.22 | 30.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Prevent Indexing on Non-Live Sites
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲49 | 14.35 ▼0.41 | 1.82 ▲0.09 | 40.81 ▼2.41 |
Dashboard /wp-admin | 2,213 ▲33 | 5.63 ▼0.02 | 92.97 ▲4.41 | 45.98 ▲7.79 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▲0.09 | 40.85 ▼0.28 | 36.87 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,541 ▲14 | 23.38 ▲0.03 | 632.23 ▼31.53 | 48.33 ▼9.79 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.15 ▼0.03 | 100.07 ▼0.14 | 41.50 ▼1.81 |
Prevent Indexing /wp-admin/options-general.php?page=pi_prevent-indexing-settings | 815 | 2.02 | 27.58 | 30.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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
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: staging, prevent, seo, indexing, development
staging-prevent-indexing/staging-prevent-indexing.php Passed 13 tests
The principal PHP file in "Prevent Indexing on Non-Live Sites" v. 1.0 is loaded by WordPress automatically on each request
95 characters long description:
Automatically switches OFF the indexing option if the URL does not match the site URL provided.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin101 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 16 | 101 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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
No PNG files were detected