Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼143.47ms] Passed 4 tests
This is a short check of server-side resources used by ACF Media Credit
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 40.16 ▲14.27 |
Dashboard /wp-admin | 3.06 ▲0.00 | 33.52 ▼9.65 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 38.56 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 88.40 ▼558.39 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 28.43 ▼4.72 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by ACF Media Credit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 16.43 ▲1.06 | 11.49 ▲0.30 | 45.41 ▼2.61 |
Dashboard /wp-admin | 2,970 ▲36 | 5.91 ▼0.09 | 139.09 ▼24.89 | 116.95 ▲14.32 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.85 ▲0.00 | 71.77 ▲2.33 | 89.55 ▼1.81 |
Add New Post /wp-admin/post-new.php | 1,876 ▲4 | 19.23 ▲0.06 | 364.66 ▼15.85 | 102.02 ▼7.21 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.05 ▲0.04 | 157.00 ▲8.57 | 123.05 ▼4.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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
Even though everything seems fine, this is not 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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-media-credit/media-credit.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-media-credit/media-credit.php:18
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-media-credit/media-credit.php on line 10
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/acf-media-credit/media-credit.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (What the fields look like when added to a media item), #2 (A clearer shot of those fields on a media attachment), #3 (One of the functions available to developers)
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
acf-media-credit/media-credit.php 85% from 13 tests
Analyzing the main PHP file in "ACF Media Credit" version 2.3.7
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-media-credit.php" instead of "media-credit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin566 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 57 | 109 | 436 |
JSON | 1 | 0 | 0 | 88 |
CSS | 4 | 1 | 0 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.75MB with 0.45MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 656.87KB | 273.27KB | ▼ 58.40% |
screenshot-3.png | 70.32KB | 23.56KB | ▼ 66.49% |
screenshot-2.png | 39.91KB | 18.60KB | ▼ 53.39% |