Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼2.52ms] Passed 4 tests
An overview of server-side resources used by Exif Caption
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.69 ▼4.66 |
Dashboard /wp-admin | 3.45 ▲0.15 | 45.07 ▲0.21 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.16 ▼2.96 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 81.65 ▼2.68 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.53 ▲4.42 |
Exif Caption /wp-admin/upload.php?page=exifcaption-settings | 3.35 | 34.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.80MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Exif Caption
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.51 ▲0.16 | 1.72 ▲0.13 | 36.72 ▼0.46 |
Dashboard /wp-admin | 2,202 ▲38 | 5.64 ▲0.07 | 80.24 ▼17.33 | 38.38 ▼1.30 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 34.88 ▼1.14 | 33.10 ▼3.42 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.20 ▼5.47 | 642.86 ▲15.18 | 71.70 ▲28.41 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.06 | 109.75 ▲14.45 | 47.46 ▲4.48 |
Exif Caption /wp-admin/upload.php?page=exifcaption-settings | 1,295 | 2.01 | 26.71 | 29.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.80MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 6× 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/exif-caption/lib/class-exifcaptionadmin.php:37
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-screen.php' (include_path='.:/usr/share/php') in wp-content/plugins/exif-caption/lib/class-tt-exifcaption-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/exif-caption/lib/class-exifcaption.php:37
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-screen.php): failed to open stream: No such file or directory in wp-content/plugins/exif-caption/lib/class-tt-exifcaption-list-table.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/exif-caption/lib/class-exifcaption.php:37
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/exif-caption/lib/class-tt-exifcaption-list-table.php on line 26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: photos, media library, exif, caption
exif-caption/exifcaption.php 92% from 13 tests
The primary PHP file in "Exif Caption" version 3.08 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("exif-caption.php" instead of "exifcaption.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin896 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 316 | 896 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 6.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin