Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼4.59ms] Passed 4 tests
A check of server-side resources used by Oxyplug Prefetch & Prerender
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 45.69 ▲2.27 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.84 ▼10.36 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 47.34 ▼2.89 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 86.00 ▼7.37 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.29 ▲2.36 |
Oxyplug Prefetch & Prerender /wp-admin/tools.php?page=oxy-prefetch-settings | 3.39 | 35.50 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Oxyplug Prefetch & Prerender
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲159 | 13.97 ▼0.14 | 9.45 ▲7.50 | 48.15 ▲3.79 |
Dashboard /wp-admin | 2,226 ▲46 | 5.51 ▼0.10 | 88.80 ▼11.38 | 42.64 ▼1.03 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.02 ▲0.04 | 38.30 ▼0.96 | 34.54 ▼6.77 |
Add New Post /wp-admin/post-new.php | 6,348 ▲4,818 | 18.98 ▼4.02 | 809.39 ▲122.20 | 62.02 ▲10.16 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.19 ▼0.02 | 100.74 ▼1.57 | 43.19 ▼0.05 |
Oxyplug Prefetch & Prerender /wp-admin/tools.php?page=oxy-prefetch-settings | 964 | 2.16 | 27.42 | 35.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oxyplug-prefetch/oxy-prefetch.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
oxyplug-prefetch/oxy-prefetch.php 69% from 13 tests
The primary PHP file in "Oxyplug Prefetch & Prerender" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 222 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("oxyplug-prefetch.php" instead of "oxy-prefetch.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "4.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,682 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 126 | 122 | 846 |
JavaScript | 2 | 60 | 8 | 391 |
CSS | 1 | 71 | 12 | 324 |
PO File | 1 | 37 | 0 | 87 |
SVG | 2 | 0 | 2 | 34 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 150.00 |
▷ Minimum class complexity | 150.00 |
▷ Maximum class complexity | 150.00 |
Average method complexity | 7.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 19 | 100.00% |
▷ Public constants | 19 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin