Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.30ms] Passed 4 tests
Server-side resources used by Smart WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.07 ▼1.71 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.68 ▼7.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.74 ▲0.85 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 87.95 ▼20.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.95 ▲2.45 |
Server storage [IO: ▲3.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.24 ▼0.11 | 1.67 ▲0.06 | 38.74 ▼0.46 |
Dashboard /wp-admin | 2,210 ▲30 | 5.74 ▼0.05 | 86.90 ▼2.76 | 78.44 ▲32.84 |
Posts /wp-admin/edit.php | 2,112 ▲9 | 1.99 ▼0.01 | 34.22 ▼7.90 | 34.94 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,548 ▲3 | 23.24 ▼0.09 | 737.69 ▲52.01 | 62.16 ▲7.40 |
Media Library /wp-admin/upload.php | 1,418 ▲15 | 4.10 ▼0.13 | 101.80 ▼2.92 | 80.00 ▲34.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
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: Class 'GeorgGriesser\\WordPress\\Smart_WP\\Header_Manager\\Header_Manager' not found in wp-content/plugins/smart-wp/src/Header_Manager/class-object-header-manager.php:7
- > PHP Fatal error
Uncaught Error: Class 'GeorgGriesser\\WordPress\\Smart_WP\\Header_Manager\\Header_Manager' not found in wp-content/plugins/smart-wp/src/Header_Manager/class-archive-header-manager.php:7
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
smart-wp/smart-wp.php Passed 13 tests
The principal PHP file in "Smart WordPress" v. 1.0.2 is loaded by WordPress automatically on each request
111 characters long description:
Optimize the caching behavior of your Website the easy way and reload pages only if something has been changed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected59,334 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 985 | 43,313 | 58,804 |
PHP | 11 | 149 | 111 | 437 |
SVG | 1 | 0 | 0 | 67 |
Markdown | 1 | 14 | 0 | 26 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 19 | 51.35% |
▷ Public methods | 24 | 64.86% |
▷ Protected methods | 2 | 5.41% |
▷ Private methods | 11 | 29.73% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/smart-wp-ohne.png | 10.90KB | 5.14KB | ▼ 52.82% |
angular/backend/dist/assets/smart-wp-ohne.png | 10.90KB | 5.14KB | ▼ 52.82% |
img/velocious-logo-yellow.png | 0.75KB | 0.72KB | ▼ 3.93% |
img/slim-wp-ohne.png | 15.68KB | 5.79KB | ▼ 63.08% |
angular/backend/dist/assets/slim-wp-ohne.png | 15.68KB | 5.79KB | ▼ 63.08% |