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.15MB] [CPU: ▼2.89ms] Passed 4 tests
A check of server-side resources used by WPG2Mod
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 42.57 ▲2.53 |
Dashboard /wp-admin | 3.45 ▲0.15 | 50.00 ▼1.30 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 52.34 ▲3.89 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 89.18 ▼14.82 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.68 ▲2.02 |
WPG2Mod /wp-admin/options-general.php?page=WPG2Mod | 3.34 | 38.47 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WPG2Mod
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.47 ▲0.33 | 1.81 ▲0.23 | 42.68 ▲1.90 |
Dashboard /wp-admin | 2,206 ▲32 | 5.61 ▲0.06 | 92.72 ▼0.15 | 41.47 ▼4.64 |
Posts /wp-admin/edit.php | 2,108 ▲11 | 2.00 ▼0.01 | 38.29 ▲3.53 | 36.09 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.02 ▼0.18 | 671.93 ▼12.59 | 58.09 ▲7.78 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.22 ▲0.01 | 112.78 ▲3.71 | 46.67 ▲2.88 |
WPG2Mod /wp-admin/options-general.php?page=WPG2Mod | 844 | 2.01 | 25.21 | 35.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpg2mod/public/wpg2mod-public.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: wordpress gallery, tool, import, modula image gallery, classicpress...
wpg2mod/wpg2mod.php Passed 13 tests
Analyzing the main PHP file in "WPG2Mod" version 1.0.1
61 characters long description:
Import and convert WordPress Galleries into Modula Galleries.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,146 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 369 | 499 | 720 |
PO File | 2 | 62 | 62 | 202 |
JavaScript | 1 | 71 | 85 | 116 |
CSS | 2 | 3 | 33 | 108 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 8.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG images were found in this plugin