Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/dynamic-copyright-year/dynamic-copyright-year.php+38
Trying to access array offset on value of type bool
Server metrics [RAM: ▲5.33MB] [CPU: ▲30.20ms] 75% from 4 tests
Analyzing server-side resources used by Dynamic Copyright Year
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.33MB on /wp-admin/tools.php?page=csf-welcome)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.94 ▲5.48 | 85.48 ▲46.70 |
Dashboard /wp-admin | 8.96 ▲5.66 | 93.78 ▲39.99 |
Posts /wp-admin/edit.php | 8.96 ▲5.61 | 83.19 ▲11.71 |
Add New Post /wp-admin/post-new.php | 10.46 ▲4.58 | 131.54 ▲32.33 |
Media Library /wp-admin/upload.php | 8.96 ▲5.73 | 76.55 ▲36.75 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.96 | 73.24 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 8.96 | 75.78 |
Server storage [IO: ▲4.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 311 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_accounts |
fscymu_options |
can_compress_scripts |
fs_active_plugins |
widget_recent-comments |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Dynamic Copyright Year
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.38 ▲0.04 | 1.73 ▼0.07 | 32.32 ▼8.01 |
Dashboard /wp-admin | 2,235 ▲58 | 5.52 ▼0.15 | 83.97 ▼7.05 | 38.60 ▼7.58 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.97 ▼0.06 | 34.14 ▼6.64 | 35.57 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 23.01 ▲1.82 | 659.39 ▼24.80 | 64.87 ▲1.83 |
Media Library /wp-admin/upload.php | 1,434 ▲31 | 4.30 ▲0.07 | 97.11 ▼6.61 | 44.16 ▼2.46 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,102 | 1.69 | 27.57 | 33.48 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,462 | 3.54 | 51.65 | 60.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/dynamic-copyright-year/inc/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-comments
- fs_accounts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- db_upgraded
- fs_debug_mode
- fscymu_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function fsdcy_fs() in wp-content/plugins/dynamic-copyright-year/csf-options.php:342
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dynamic-copyright-year/plugin_footer.php:76
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/dynamic-copyright-year/whyupgrade.php:67
- > PHP Fatal error
Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/dynamic-copyright-year/dynamic-copyright-year.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: localization, footer links, copyright, privacy policy, dynamic
dynamic-copyright-year/dynamic-copyright-year.php Passed 13 tests
The primary PHP file in "Dynamic Copyright Year" version 1.0.3 is used by WordPress to initiate all plugin functionality
76 characters long description:
Updates the copyright year in the footer dynamically so it's always current.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected50,530 lines of code in 236 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 191 | 10,187 | 18,247 | 43,224 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Markdown | 3 | 153 | 0 | 593 |
JavaScript | 5 | 36 | 61 | 196 |
CSS | 15 | 0 | 0 | 15 |
SVG | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 54.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 102 | |
▷ Abstract classes | 4 | 3.92% |
▷ Concrete classes | 98 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,442 | |
▷ Static methods | 228 | 15.81% |
▷ Public methods | 1,053 | 73.02% |
▷ Protected methods | 17 | 1.18% |
▷ Private methods | 372 | 25.80% |
Functions | 124 | |
▷ Named functions | 123 | 99.19% |
▷ Anonymous functions | 1 | 0.81% |
Constants | 145 | |
▷ Global constants | 98 | 67.59% |
▷ Class constants | 47 | 32.41% |
▷ 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
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/5starplugins_logo_final_600pxwide.png | 9.06KB | 4.50KB | ▼ 50.30% |
inc/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
inc/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
inc/images/dynamic_copyright_year_plugin_logo_horizontal_transparent_300x150.png | 29.38KB | 9.98KB | ▼ 66.02% |
inc/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |