Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼141.99ms] Passed 4 tests
Analyzing server-side resources used by ThirstyAffiliates For FooGallery Extension
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 39.06 ▲18.13 |
Dashboard /wp-admin | 3.08 ▲0.03 | 46.87 ▲0.31 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 48.52 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 89.52 ▼570.06 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 35.93 ▲2.61 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ThirstyAffiliates For FooGallery Extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲66 | 15.84 ▲0.22 | 10.19 ▲0.06 | 49.33 ▲4.53 |
Dashboard /wp-admin | 2,964 ▲30 | 6.10 ▼0.16 | 160.20 ▲11.53 | 107.33 ▲2.84 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 63.50 ▼1.94 | 86.89 ▲1.05 |
Add New Post /wp-admin/post-new.php | 1,676 ▼7 | 18.87 ▲0.55 | 412.93 ▼3.47 | 111.70 ▼9.17 |
Media Library /wp-admin/upload.php | 1,751 ▼56 | 5.01 ▼0.01 | 151.09 ▼7.60 | 110.65 ▼2.16 |
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
The plugin uninstalled completely, with no zombie files or tables
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)
Even though no errors were found, 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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/thirstyaffiliates-for-foogallery-extension/thirstyaffiliates-for-foogallery-extension.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/thirstyaffiliates-for-foogallery-extension/thirstyaffiliates-for-foogallery-init.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI ("")
thirstyaffiliates-for-foogallery-extension/thirstyaffiliates-for-foogallery-extension.php Passed 13 tests
"ThirstyAffiliates For FooGallery Extension" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
95 characters long description:
Lets you create galleries of images that link to affiliate links (powered by ThirstyAffiliates)
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
Everything looks great! No dangerous files found in this plugin141 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 32 | 84 |
JavaScript | 1 | 11 | 8 | 39 |
CSS | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/extension_bg.png | 149.04KB | 59.09KB | ▼ 60.35% |
assets/icon-aff.png | 4.26KB | 0.76KB | ▼ 82.24% |