Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.26ms] Passed 4 tests
This is a short check of server-side resources used by Altoshift For Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.47 ▼4.40 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.40 ▼1.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.89 ▼6.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.04 ▼4.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.91 ▲1.53 |
Layer /wp-admin/admin.php?page=altoshift-layer | 3.24 | 31.95 |
Data Feed /wp-admin/admin.php?page=altoshift-feed | 3.25 | 35.32 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Altoshift For Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.62 ▼0.75 | 2.47 ▲0.39 | 45.47 ▲5.57 |
Dashboard /wp-admin | 2,233 ▲42 | 5.86 ▲0.96 | 113.87 ▲3.73 | 43.08 ▲0.56 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▼0.04 | 36.65 ▼3.98 | 33.86 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 18.62 ▲0.49 | 626.19 ▲18.57 | 69.39 ▲21.98 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.22 ▲0.02 | 98.44 ▲0.56 | 44.94 ▲0.71 |
Layer /wp-admin/admin.php?page=altoshift-layer | 854 | 2.05 | 24.81 | 27.21 |
Data Feed /wp-admin/admin.php?page=altoshift-feed | 866 | 2.15 | 25.03 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Requires at least: The plugin version is formatted incorrectly
altoshift/AltoshiftWordpressPlugin.php 92% from 13 tests
The entry point to "Altoshift For Wordpress" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("altoshift.php" instead of "AltoshiftWordpressPlugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected771 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 116 | 17 | 718 |
Markdown | 1 | 18 | 0 | 53 |
PHP code Passed 2 tests
This is a short overview 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.41 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 8 | 20.51% |
▷ Public methods | 25 | 64.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 35.90% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
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
No PNG files were detected