Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.60MB] [CPU: ▼0.99ms] Passed 4 tests
An overview of server-side resources used by PantherMedia Stock Photo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 50.76 ▲6.46 |
Dashboard /wp-admin | 3.94 ▲0.63 | 57.34 ▲3.81 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 52.02 ▲0.70 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.59 | 87.74 ▼14.93 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 44.34 ▲7.57 |
Account /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_login | 3.83 | 39.63 |
Search /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo.php | 3.83 | 36.17 |
Settings /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_settings | 3.89 | 37.85 |
My Media /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_mymedia | 3.78 | 36.29 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
plugin_panthermedia-stock-photo_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for PantherMedia Stock Photo
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲73 | 14.23 ▼0.13 | 1.90 ▼0.03 | 43.88 ▼0.82 |
Dashboard /wp-admin | 2,228 ▲48 | 5.64 ▼0.02 | 92.33 ▲1.47 | 75.74 ▲31.94 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.15 ▲0.19 | 37.20 ▲0.65 | 38.76 ▲3.11 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.42 ▲5.07 | 793.56 ▲139.60 | 68.96 ▲9.26 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.22 ▼0.00 | 101.58 ▲2.68 | 79.85 ▲37.49 |
Account /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_login | 887 | 2.04 | 26.83 | 28.11 |
Search /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo.php | 1,557 | 1.92 | 33.19 | 51.47 |
Settings /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_settings | 2,001 | 1.71 | 30.11 | 26.56 |
My Media /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_mymedia | 931 | 1.90 | 31.68 | 51.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'plugin_uninstall' not found or invalid function name
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_settings
- > Notice in wp-content/plugins/panthermedia-stock-photo/views/options.php+341
Undefined index: value
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=panthermedia-stock-photo/classes/panthermedia-stock-photo_settings
- > Notice in wp-content/plugins/panthermedia-stock-photo/views/options.php+341
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/panthermedia-stock-photo/files/config-default.php
- > /wp-content/plugins/panthermedia-stock-photo/files/config-plugin.php
- > /wp-content/plugins/panthermedia-stock-photo/panthermedia-stock-photo.php
- > /wp-content/plugins/panthermedia-stock-photo/classes/panthermedia-stock-photo.php
- > /wp-content/plugins/panthermedia-stock-photo/files/config-rest.php
- > /wp-content/plugins/panthermedia-stock-photo/views/thumb.php
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: media in wp-content/plugins/panthermedia-stock-photo/views/thumb.php on line 59
- > PHP Notice
Undefined variable: page in wp-content/plugins/panthermedia-stock-photo/views/paging.php on line 37
- > PHP Notice
Undefined variable: media in wp-content/plugins/panthermedia-stock-photo/views/thumb.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/panthermedia-stock-photo/views/paging.php:45
- > PHP Notice
Undefined variable: page in wp-content/plugins/panthermedia-stock-photo/views/paging.php on line 31
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/panthermedia-stock-photo/views/account.php:32
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/panthermedia-stock-photo/views/search.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/panthermedia-stock-photo/views/media_licenses.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/panthermedia-stock-photo/views/media_available.php:35
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/panthermedia-stock-photo/views/thumb.php on line 31
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: royalty free, stock agency, stock photo, buy photos
panthermedia-stock-photo/panthermedia-stock-photo.php 92% from 13 tests
"PantherMedia Stock Photo" version 1.8.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
There were no executable files found in this plugin6,585 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 671 | 1,180 | 3,205 |
PO File | 8 | 1,084 | 556 | 2,294 |
JavaScript | 3 | 122 | 175 | 574 |
CSS | 2 | 101 | 18 | 509 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 112.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 108 | |
▷ Static methods | 1 | 0.93% |
▷ Public methods | 44 | 40.74% |
▷ Protected methods | 2 | 1.85% |
▷ Private methods | 62 | 57.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
files/favicon_32x32.png | 0.85KB | 0.75KB | ▼ 10.74% |
files/rm.png | 1.18KB | 0.94KB | ▼ 20.86% |
files/premium.png | 1.51KB | 1.00KB | ▼ 33.74% |
files/pager_back.png | 0.48KB | 0.41KB | ▼ 13.88% |
files/pager_next.png | 0.48KB | 0.41KB | ▼ 15.52% |