Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.99ms] Passed 4 tests
This is a short check of server-side resources used by FooGallery Captions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.81 ▼0.91 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.01 ▼7.11 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.69 ▼1.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.73 ▼6.88 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.63 ▲2.93 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
FooGallery Captions: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.22 | 1.66 ▲0.05 | 40.79 ▼3.07 |
Dashboard /wp-admin | 2,189 ▲12 | 5.49 ▼0.03 | 96.58 ▼4.16 | 43.06 ▼0.86 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.04 | 41.03 ▲5.86 | 34.61 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.97 ▼0.63 | 663.23 ▼42.81 | 55.02 ▲0.21 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.30 ▲0.09 | 98.40 ▼2.41 | 42.05 ▼7.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
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 items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/foogallery-captions/foogallery-individual-captions.php:243
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: separate captions, foogallery, captions, individual captions
foogallery-captions/foogallery-individual-captions.php 77% from 13 tests
The principal PHP file in "FooGallery Captions" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: Prefix the domain path with a forward slash character ("/lang/")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("lang/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("foogallery-captions.php" instead of "foogallery-individual-captions.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin186 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 77 | 112 |
JavaScript | 1 | 27 | 0 | 52 |
CSS | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 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 | 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
There are no PNG files in this plugin