Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests
This is a short check of server-side resources used by Reorder Entry Images
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.52 ▼4.99 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.49 ▼5.11 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.88 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.33 ▼11.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 41.28 ▲2.91 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Reorder Entry Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.21 ▼1.08 | 4.43 ▲2.38 | 43.60 ▼0.84 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.12 | 111.92 ▲5.63 | 38.96 ▼7.25 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.01 | 40.62 ▲0.92 | 36.35 ▲1.79 |
Add New Post /wp-admin/post-new.php | 1,528 ▼14 | 22.97 ▲4.93 | 660.49 ▲9.97 | 51.47 ▲0.11 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.13 ▼0.22 | 111.15 ▲8.50 | 49.86 ▲8.02 |
Uninstaller [IO: ▲0.11MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 6 options in the database
- The plugin did not uninstall successfully, leaving 19 files (0.11MB) in the plugin directory
- (new file) js/admin.js
- (new file) class-reorder-entry-images.php
- (new file) lang/reorder-entry-images-it_IT.mo
- (new file) index.php
- (new file) css/admin.css
- (new file) lang/index.php
- (new file) css/index.php
- (new file) js/index.php
- (new file) LICENSE.txt
- (new file) README.txt
- ...
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/reorder-entry-images/views/admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/reorder-entry-images/uninstall.php:12
- > 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
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Drag & drop your images in the order you choose.), #2 (Settings page - set which post type or page to use this.)
reorder-entry-images/reorder-entry-images.php Passed 13 tests
The main file in "Reorder Entry Images" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
138 characters long description:
This will get all the attachments that belong to a post or a page and display them in a list. This list can be reordered by drag and drop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin467 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 96 | 228 | 325 |
CSS | 1 | 0 | 0 | 52 |
PO File | 1 | 12 | 12 | 49 |
JavaScript | 1 | 10 | 5 | 41 |
PHP code Passed 2 tests
A brief analysis 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.35 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 19 | |
▷ Static methods | 4 | 21.05% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 11.53KB | 10.50KB | ▼ 9.00% |
screenshot-2.png | 50.20KB | 17.18KB | ▼ 65.77% |