Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.11MB] [CPU: ▼16.02ms] Passed 4 tests
Analyzing server-side resources used by arm4slide
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.05 ▼4.57 |
Dashboard /wp-admin | 3.25 ▼0.05 | 29.35 ▼19.90 |
Posts /wp-admin/edit.php | 3.32 ▼0.03 | 37.06 ▼17.78 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.38 | 67.26 ▼21.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 29.34 ▲0.03 |
Slider /wp-admin/themes.php?page=arm4slide | 3.23 | 26.31 |
Server storage [IO: ▲1.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
arm4slide |
category_children |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for arm4slide
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,087 ▲352 | 16.50 ▲2.21 | 14.64 ▲12.84 | 41.57 ▼5.82 |
Dashboard /wp-admin | 2,316 ▲128 | 5.85 ▲1.00 | 135.84 ▲21.97 | 38.51 ▼9.62 |
Posts /wp-admin/edit.php | 2,197 ▲105 | 3.37 ▲1.37 | 48.20 ▲3.84 | 50.72 ▲7.53 |
Add New Post /wp-admin/post-new.php | 1,374 ▼140 | 14.70 ▼2.86 | 496.06 ▼167.16 | 17.07 ▼39.56 |
Media Library /wp-admin/upload.php | 1,515 ▲124 | 5.07 ▲0.85 | 123.13 ▲22.24 | 50.04 ▲7.77 |
Slider /wp-admin/themes.php?page=arm4slide | 4,884 | 4.88 | 124.98 | 37.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- arm4slide
- widget_recent-comments
- category_children
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=arm4slide
- > 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.
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arm4slide/trunk/class-arm4plugins.php:131
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arm4slide/class-arm4plugins.php:131
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== arm4slide ===
)
arm4slide/arm4slide.php Passed 13 tests
The primary PHP file in "arm4slide" version 1.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
A complete javascript slider plugin using mooTools.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,964 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,579 | 1,000 | 5,364 |
PHP | 3 | 62 | 170 | 1,505 |
CSS | 1 | 4 | 5 | 95 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 compressed PNG files occupy 0.66MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/images/admin/toolicon32.png | 1.29KB | 1.19KB | ▼ 7.67% |
images/admin/toolicon32.png | 1.29KB | 1.19KB | ▼ 7.67% |
images/control_circles.png | 0.34KB | 0.27KB | ▼ 20.35% |
images/admin/ball.png | 0.81KB | 1.03KB | 0.00% |
trunk/images/control_squares.png | 0.23KB | 0.20KB | ▼ 13.92% |