Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.27ms] Passed 4 tests
This is a short check of server-side resources used by Virtual Robots.txt
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.96 ▼11.44 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.66 ▼3.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.35 ▲0.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.95 ▼10.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.12 ▲2.28 |
Virtual Robots.txt /wp-admin/options-general.php?page=pc-robotstxt/admin.php | 3.22 | 34.42 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
pc_robotstxt |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Virtual Robots.txt
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.68 ▲0.25 | 1.75 ▼0.50 | 44.47 ▼1.14 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.03 | 88.69 ▼2.90 | 37.33 ▼3.67 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▼0.04 | 34.18 ▼2.48 | 35.75 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.15 ▲0.08 | 681.12 ▼13.89 | 51.06 ▼17.23 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.24 ▲0.02 | 95.95 ▼13.79 | 44.84 ▼1.53 |
Virtual Robots.txt /wp-admin/options-general.php?page=pc-robotstxt/admin.php | 798 | 2.00 | 23.15 | 30.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- pc_robotstxt
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pc-robotstxt/admin.php:6
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pc-robotstxt/pc-robotstxt.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pc-robotstxt/pc-robotstxt.php:40
- > 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 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
4 plugin tags: robots, robotstxt, robot, crawler
pc-robotstxt/pc-robotstxt.php Passed 13 tests
The main PHP script in "Virtual Robots.txt" version 1.10 is automatically included on every request by WordPress
62 characters long description:
Automatically creates a virtual robots.txt file for your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected123 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 41 | 123 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected