Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.78MB] [CPU: ▼179.83ms] Passed 4 tests
Server-side resources used by Old Posts Highlighter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.24 | 35.45 ▲10.36 |
Dashboard /wp-admin | 2.86 ▼0.19 | 22.94 ▼27.75 |
Posts /wp-admin/edit.php | 2.87 ▼0.24 | 21.13 ▼25.26 |
Add New Post /wp-admin/post-new.php | 2.86 ▼2.57 | 26.21 ▼659.64 |
Media Library /wp-admin/upload.php | 2.86 ▼0.14 | 26.63 ▼6.66 |
Server storage [IO: ▲0.13MB] [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: 10 new files
Database: no new tables, 10 new options
New WordPress options |
---|
OPH_omit_cats |
OPH_at_top |
OPH_age_limit |
OPH_show_original_pubdate |
OPH_FORCED_POSTS |
OPH_interval |
OPH_give_credit |
OPH_last_update |
OPH_interval_aleatoire |
OPH_pos |
Browser metrics Passed 4 tests
Old Posts Highlighter: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲103 | 15.96 ▲0.37 | 7.71 ▼3.20 | 44.17 ▼3.43 |
Dashboard /wp-admin | 2,990 ▲59 | 6.17 ▲0.02 | 147.08 ▼6.95 | 105.95 ▼17.61 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.83 ▲0.13 | 65.27 ▼9.99 | 95.09 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,697 ▲14 | 18.59 ▼0.11 | 379.74 ▼22.62 | 115.55 ▲6.29 |
Media Library /wp-admin/upload.php | 1,826 ▲19 | 5.08 ▲0.04 | 159.28 ▼9.83 | 117.98 ▼11.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5495
has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options were found after uninstall: 9 options
- OPH_pos
- OPH_interval_aleatoire
- OPH_at_top
- OPH_interval
- OPH_age_limit
- OPH_FORCED_POSTS
- OPH_omit_cats
- OPH_last_update
- OPH_show_original_pubdate
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/old-posts-highlighter/Old_Posts_Highlighter.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/old-posts-highlighter/Old_Posts_Highlighter.php:58
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 76% from 29 tests
readme.txt 75% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== old-posts-highlighter ===
) - Donate link: Please fix this invalid url: ""
- Screenshots: Screenshot #1 (screenshot-1.jpg) image not found
old-posts-highlighter/Old_Posts_Highlighter.php 77% from 13 tests
"Old Posts Highlighter" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 342 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("old-posts-highlighter.php" instead of "Old_Posts_Highlighter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected708 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 103 | 79 | 445 |
PO File | 2 | 93 | 110 | 255 |
CSS | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
No PNG files were detected