Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.56ms] Passed 4 tests
This is a short check of server-side resources used by Photography Core
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.02 ▲0.28 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.26 ▲0.73 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 43.19 ▼4.69 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.52 ▼2.55 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 40.96 ▲5.76 |
Keywords /wp-admin/edit-tags.php?taxonomy=attachment_keyword&post_type=attachment | 3.30 | 34.03 |
Folders /wp-admin/edit-tags.php?taxonomy=meow_folder&post_type=meow_collection | 3.33 | 41.91 |
Add New /wp-admin/post-new.php?post_type=meow_collection | 6.10 | 84.14 |
All Collections /wp-admin/edit.php?post_type=meow_collection | 3.35 | 36.99 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photography Core
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲142 | 14.48 ▲0.18 | 1.84 ▼0.03 | 39.99 ▼4.23 |
Dashboard /wp-admin | 2,241 ▲50 | 5.80 ▲0.95 | 113.05 ▲8.17 | 42.15 ▲2.14 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.98 ▼0.06 | 37.15 ▲2.30 | 33.12 ▲1.26 |
Add New Post /wp-admin/post-new.php | 6,633 ▲5,119 | 22.34 ▲4.72 | 934.74 ▲239.22 | 39.72 ▼14.47 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.19 ▼0.06 | 95.87 ▼2.24 | 44.05 ▲0.10 |
Keywords /wp-admin/edit-tags.php?taxonomy=attachment_keyword&post_type=attachment | 1,296 | 2.14 | 29.71 | 28.15 |
Folders /wp-admin/edit-tags.php?taxonomy=meow_folder&post_type=meow_collection | 1,554 | 3.18 | 42.71 | 26.67 |
Add New /wp-admin/post-new.php?post_type=meow_collection | 1,546 | 16.85 | 821.71 | 32.25 |
All Collections /wp-admin/edit.php?post_type=meow_collection | 1,147 | 1.93 | 30.54 | 30.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/photography-core/api.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/photography-core/folders-order.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
9 plugin tags: retina, photography, responsive, photo, gallery...
photography-core/photography-core.php Passed 13 tests
This is the main PHP file of "Photography Core" version 0.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
132 characters long description:
Photography Core is the heart of the themes made for photographers. Features are the API, helpers, Gutenberg blocks, Lightroom, etc.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,788 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 149 | 120 | 900 |
CSS | 10 | 63 | 0 | 498 |
JavaScript | 7 | 35 | 1 | 340 |
Sass | 6 | 11 | 4 | 50 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 95.31% |
▷ Protected methods | 1 | 1.56% |
▷ Private methods | 2 | 3.12% |
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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/meowapps.png | 3.54KB | 3.59KB | 0.00% |