Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼9.19ms] Passed 4 tests
Analyzing server-side resources used by slidenswap
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.74 ▼1.54 |
Dashboard /wp-admin | 3.38 ▲0.04 | 48.42 ▼8.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.85 ▲3.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 80.23 ▼28.45 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 37.31 ▲2.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_slidenswap |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
slidenswap_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for slidenswap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,067 ▲321 | 15.39 ▲0.99 | 7.37 ▲5.69 | 38.50 ▼1.56 |
Dashboard /wp-admin | 2,360 ▲175 | 6.45 ▲0.66 | 129.95 ▲29.21 | 36.66 ▼6.70 |
Posts /wp-admin/edit.php | 2,275 ▲186 | 3.38 ▲1.37 | 53.71 ▲12.85 | 35.53 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 18.46 ▲0.84 | 597.76 ▼64.50 | 33.34 ▼21.07 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.25 ▲0.08 | 93.95 ▼20.02 | 41.74 ▼7.41 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: image animation effect, slidenswap, image gallery
slidenswap-gallery/slidenswap.php 77% from 13 tests
The main PHP script in "slidenswap" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("slidenswap-gallery.php" instead of "slidenswap.php")
- Domain Path: The domain path folder does not exist ("/lang/")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin441 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 24 | 41 | 194 |
PHP | 2 | 35 | 30 | 186 |
CSS | 2 | 6 | 1 | 60 |
Markdown | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 11 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 26.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin