Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼296.52ms] Passed 4 tests
This is a short check of server-side resources used by Ads For Old Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 57.69 ▲5.29 |
Dashboard /wp-admin | 3.44 ▲0.04 | 35.17 ▲0.06 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 39.98 ▼5.22 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.05 | 151.32 ▼1,181.12 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 25.05 ▲0.21 |
Ads for Old Posts /wp-admin/options-general.php?page=ads-for-old-posts/ads_for_old_posts.php | 3.32 | 24.93 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
afop_option |
Browser metrics Passed 4 tests
A check of browser resources used by Ads For Old Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲60 | 16.37 ▲0.74 | 8.02 ▲2.06 | 2.31 ▲0.12 |
Dashboard /wp-admin | 2,907 ▲56 | 6.75 ▲0.63 | 122.85 ▼33.81 | 154.96 ▼14.82 |
Posts /wp-admin/edit.php | 2,727 ▲33 | 3.30 ▲0.06 | 68.06 ▲3.84 | 158.76 ▲11.54 |
Add New Post /wp-admin/post-new.php | 1,692 ▲57 | 19.97 ▲1.59 | 390.23 ▼37.81 | 190.12 ▲45.19 |
Media Library /wp-admin/upload.php | 1,728 ▲30 | 5.87 ▲0.32 | 123.56 ▼30.84 | 182.88 ▼15.54 |
Ads for Old Posts /wp-admin/options-general.php?page=ads-for-old-posts/ads_for_old_posts.php | 1,934 | 3.47 | 76.99 | 143.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- afop_option
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
Good news, no errors were detected
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/ads-for-old-posts/options_ads_for_old_posts.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-for-old-posts/ads_for_old_posts.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 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
3 plugin tags: content, posts, ads
ads-for-old-posts/ads_for_old_posts.php 92% from 13 tests
The entry point to "Ads For Old Posts" version 2.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ads-for-old-posts.php" instead of "ads_for_old_posts.php")
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
No dangerous file extensions were detected288 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 41 | 285 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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 images were found in this plugin