Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/smart-archives-reloaded/admin/admin.php+23
Declaration of SAR_Settings::validate($args) should be compatible with scbAdminPage::validate($new_data, $old_data)
Server metrics [RAM: ▼1.49MB] [CPU: ▼50.08ms] Passed 4 tests
Server-side resources used by Smart Archives Reloaded
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.14 ▼0.32 | 18.47 ▼24.67 |
Dashboard /wp-admin | 2.47 ▼0.88 | 14.51 ▼51.09 |
Posts /wp-admin/edit.php | 2.47 ▼0.89 | 14.09 ▼37.72 |
Add New Post /wp-admin/post-new.php | 2.47 ▼3.42 | 12.40 ▼85.70 |
Media Library /wp-admin/upload.php | 2.47 ▼0.76 | 11.92 ▼25.82 |
Smart Archives /wp-admin/options-general.php?page=smart-archives | 2.47 | 13.59 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 71 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
smart-archives |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Archives Reloaded
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 13.24 ▼1.05 | 1.79 ▼0.19 | 46.08 ▼0.17 |
Dashboard /wp-admin | 2,202 ▲25 | 5.58 ▼0.09 | 90.97 ▲0.18 | 41.67 ▼0.99 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.12 ▲0.13 | 41.66 ▼0.13 | 37.99 ▲1.45 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.75 ▲0.60 | 613.37 ▼69.47 | 57.06 ▲1.13 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.19 ▼0.10 | 95.24 ▼12.12 | 41.48 ▼4.94 |
Smart Archives /wp-admin/options-general.php?page=smart-archives | 941 | 2.08 | 25.40 | 32.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/smart-archives-reloaded/admin/admin.php+23
Declaration of SAR_Settings::validate($args) should be compatible with scbAdminPage::validate($new_data, $old_data)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=smart-archives
- > Warning in wp-content/plugins/smart-archives-reloaded/admin/admin.php+23
Declaration of SAR_Settings::validate($args) should be compatible with scbAdminPage::validate($new_data, $old_data)
- > GET request to /wp-admin/options-general.php?page=smart-archives
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
- > GET request to /wp-admin/options-general.php?page=smart-archives
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=smart-archives
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-archives-reloaded/scb/load.php:32
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/smart-archives-reloaded/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/smart-archives-reloaded/admin/admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smart-archives-reloaded/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/smart-archives-reloaded/generator.php:340
- > 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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: post list, archive, archives
smart-archives-reloaded/smart-archives-reloaded.php Passed 13 tests
The principal PHP file in "Smart Archives Reloaded" v. 2.0.5 is loaded by WordPress automatically on each request
73 characters long description:
An elegant and easy way to present your posts, grouped by year and month.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,812 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 792 | 708 | 2,343 |
PO File | 17 | 541 | 681 | 1,236 |
CSS | 2 | 16 | 2 | 75 |
Markdown | 1 | 31 | 0 | 67 |
HTML | 8 | 2 | 0 | 65 |
JavaScript | 3 | 10 | 16 | 26 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 110.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 5 | 20.83% |
▷ Concrete classes | 19 | 79.17% |
▷ Final classes | 0 | 0.00% |
Methods | 219 | |
▷ Static methods | 61 | 27.85% |
▷ Public methods | 139 | 63.47% |
▷ Protected methods | 71 | 32.42% |
▷ Private methods | 9 | 4.11% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 1 | 8.33% |
▷ Class constants | 11 | 91.67% |
▷ Public constants | 11 | 100.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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/archive-year-pointer.png | 0.23KB | 0.12KB | ▼ 47.84% |
inc/img/archive-year-background.png | 0.19KB | 0.08KB | ▼ 57.95% |
screenshot-2.png | 31.69KB | 13.42KB | ▼ 57.66% |
screenshot-1.png | 23.38KB | 8.61KB | ▼ 63.17% |