Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.77ms] Passed 4 tests
A check of server-side resources used by AX Gif
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 36.26 ▲0.73 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.63 ▲8.11 |
Posts /wp-admin/edit.php | 3.13 ▲0.01 | 42.87 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.71 ▼560.85 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 32.96 ▼1.17 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by AX Gif
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,790 ▲194 | 16.21 ▲0.55 | 12.67 ▲3.69 | 53.28 ▲3.46 |
Dashboard /wp-admin | 2,969 ▲32 | 6.11 ▲0.02 | 135.83 ▼16.46 | 117.05 ▼2.89 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.02 | 66.00 ▼0.99 | 85.73 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,674 ▲4 | 18.69 ▼0.53 | 348.27 ▼23.18 | 114.71 ▲1.00 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.04 ▲0.00 | 143.56 ▲2.60 | 121.15 ▼3.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
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 is_admin() in wp-content/plugins/ax-gifs/axgif.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires php: Invalid plugin version format
- Contributors: Plugin contributors not specified
- Requires at least: Invalid plugin version format
ax-gifs/axgif.php 92% from 13 tests
"AX Gif" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ax-gifs.php" instead of "axgif.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected592 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 2 | 4 | 15 | 357 |
JavaScript | 2 | 19 | 1 | 113 |
SVG | 3 | 0 | 1 | 77 |
PHP | 1 | 16 | 19 | 43 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 1 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin