Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.09ms] Passed 4 tests
An overview of server-side resources used by Ammu Demo Import
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 46.92 ▲7.13 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.86 ▼5.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.30 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.23 ▼9.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.48 ▼3.15 |
Server storage [IO: ▲25.80MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please try to fix the following items
- Try to limit filesystem usage to 25MB (currently using 25.80MB)
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Ammu Demo Import
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.67 ▲0.57 | 1.69 ▼0.10 | 40.08 ▼3.66 |
Dashboard /wp-admin | 2,195 ▲21 | 5.63 ▲0.04 | 84.95 ▼15.64 | 37.80 ▼4.73 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.96 ▼0.00 | 39.68 ▲2.20 | 35.19 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.29 ▲0.05 | 640.13 ▼54.78 | 52.16 ▼2.22 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.40 ▲0.24 | 96.44 ▼11.96 | 42.65 ▼3.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
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 | 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× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/ammu-demo-import/ammu-demo-import.php
- > /wp-content/plugins/ammu-demo-import/inc/store-expert-functions.php
- > /wp-content/plugins/ammu-demo-import/inc/real-estate-salient-functions.php
- > /wp-content/plugins/ammu-demo-import/inc/real-estate-calibre-functions.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: import, demo, data, themes, widgets...
ammu-demo-import/ammu-demo-import.php 92% from 13 tests
The main PHP script in "Ammu Demo Import" version 1.0.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected211,552 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 3 | 312 | 517 | 211,225 |
PHP | 5 | 77 | 90 | 327 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 4.63MB with 3.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ocdi/real-estate-calibre/demo1/demo1.png | 1,132.88KB | 335.99KB | ▼ 70.34% |
ocdi/real-estate-salient/demo2/demo2.png | 457.12KB | 117.81KB | ▼ 74.23% |
ocdi/real-estate-calibre/demo2/demo2.png | 1,361.49KB | 363.14KB | ▼ 73.33% |
ocdi/store-expert/demo1/demo1.png | 757.91KB | 207.17KB | ▼ 72.67% |
ocdi/store-expert/demo2/demo2.png | 852.89KB | 233.75KB | ▼ 72.59% |