Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲4.96MB] [CPU: ▲20.99ms] 75% from 4 tests
Analyzing server-side resources used by AADMY - Add Auto Date Month Year Into Posts
It is recommended to improve the following
- CPU: The total CPU usage must kept under 500.00ms (currently 2,415.13ms on /wp-admin/options-general.php?page=aadmy-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.86 ▲5.39 | 61.12 ▲22.34 |
Dashboard /wp-admin | 8.88 ▲5.57 | 66.76 ▲17.69 |
Posts /wp-admin/edit.php | 8.88 ▲5.52 | 75.15 ▲26.58 |
Add New Post /wp-admin/post-new.php | 9.26 ▲3.37 | 108.27 ▲17.35 |
Media Library /wp-admin/upload.php | 8.88 ▲5.65 | 65.09 ▲33.45 |
Freemius Debug [v.2.5.6] /wp-admin/admin.php?page=freemius | 8.88 | 55.56 |
AADMY Shortcodes /wp-admin/options-general.php?page=aadmy-settings | 8.88 | 2,415.13 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 189 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
fs_accounts |
db_upgraded |
theysaidso_admin_options |
fs_active_plugins |
Browser metrics Passed 4 tests
Checking browser requirements for AADMY - Add Auto Date Month Year Into Posts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲74 | 14.67 ▲0.33 | 1.88 ▲0.12 | 32.77 ▼13.73 |
Dashboard /wp-admin | 2,219 ▲42 | 5.52 ▼0.12 | 96.87 ▼3.75 | 43.77 ▼1.99 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▲0.08 | 42.19 ▲6.14 | 37.47 ▲5.29 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 22.96 ▲0.01 | 591.93 ▼20.16 | 45.35 ▼19.33 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.25 ▲0.07 | 99.61 ▲4.25 | 45.28 ▲3.67 |
Freemius Debug [v.2.5.6] /wp-admin/admin.php?page=freemius | 1,073 | 1.65 | 23.59 | 29.34 |
AADMY Shortcodes /wp-admin/options-general.php?page=aadmy-settings | 985 | 1.64 | 26.34 | 62.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- theysaidso_admin_options
- fs_accounts
- widget_theysaidso_widget
- fs_active_plugins
- can_compress_scripts
- widget_recent-comments
- fs_debug_mode
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/auto-date-year-month/aadmy-shortcodes/aadmy-offsets.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/auto-date-year-month/aadmy-includes/aadmy-welcome-message.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/auto-date-year-month/aadmy-shortcodes/aadmy-other-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-date-year-month/aadmy-includes/aadmy-menu.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (List of shortcodes), #2 (Table of shortcodes), #3 (Using of shortcodes), #4 (output of shortcodes)
- Tags: You are using too many tags: 12 tag instead of maximum 10
auto-date-year-month/auto-date-year-month.php Passed 13 tests
The principal PHP file in "AADMY - Add Auto Date Month Year Into Posts" v. 1.1.4 is loaded by WordPress automatically on each request
130 characters long description:
This WordPress plugin allows you to dynamically add current dates, years, months, and other time-related elements to your content.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin33,734 lines of code in 142 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 124 | 8,043 | 17,218 | 33,185 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 14 | 26 | 2 | 141 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,079)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 93.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,079.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 123 | |
▷ Named functions | 123 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |