Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.54ms] Passed 4 tests
A check of server-side resources used by TwentyTwenty
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.65 ▲0.17 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.55 ▼3.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.34 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.12 ▼16.02 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.85 ▼2.83 |
Server storage [IO: ▲2.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for TwentyTwenty
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.27 ▼1.04 | 2.11 ▲0.28 | 46.44 ▲2.11 |
Dashboard /wp-admin | 2,209 ▲21 | 4.84 ▼0.07 | 112.56 ▲5.22 | 46.53 ▲4.40 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.13 ▲0.12 | 36.69 ▲0.79 | 36.19 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.57 ▼0.67 | 660.22 ▼4.34 | 58.23 ▲2.75 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.17 ▲0.04 | 95.85 ▼11.53 | 44.76 ▲0.61 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
8 plugin tags: comparison, twentytwenty, slider, before and after, images...
twentytwenty/twentytwenty.php 92% from 13 tests
The main PHP script in "TwentyTwenty" version 1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin786 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 145 | 97 | 462 |
CSS | 1 | 29 | 0 | 176 |
PHP | 5 | 73 | 200 | 148 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 6 | 37.50% |
▷ Public methods | 12 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 2.18MB with 1.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 496.96KB | 224.10KB | ▼ 54.91% |
assets/banner-772x250.png | 319.55KB | 147.62KB | ▼ 53.80% |
assets/screenshot-2.png | 356.05KB | 138.85KB | ▼ 61.00% |
assets/banner-1544x500.png | 1,059.71KB | 512.06KB | ▼ 51.68% |