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.01MB] [CPU: ▼4.30ms] Passed 4 tests
A check of server-side resources used by Tablet Photography
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.92 ▼4.04 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.79 ▼2.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.17 ▼0.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.49 ▼9.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.46 ▲0.49 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Tablet Photography
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.80 ▼0.95 | 8.04 ▲6.40 | 42.81 ▼7.45 |
Dashboard /wp-admin | 2,203 ▲15 | 5.79 ▼0.07 | 99.88 ▼16.98 | 37.37 ▼5.12 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.98 ▼0.08 | 36.69 ▼0.21 | 35.81 ▲2.76 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 17.94 ▲0.42 | 620.44 ▼79.76 | 48.69 ▼3.07 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.17 ▼0.00 | 94.90 ▼0.06 | 40.19 ▼8.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- 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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/tablet-photography/tablet-photography.php:17
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== tablet-photography ===
)
tablet-photography/tablet-photography.php Passed 13 tests
The main PHP script in "Tablet Photography" version 1.2 is automatically included on every request by WordPress
63 characters long description:
ipad, tablet and smartphones responsivness for native galleries
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin4,666 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 2,148 | 886 | 4,431 |
CSS | 2 | 32 | 36 | 196 |
PHP | 1 | 7 | 10 | 39 |
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.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 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
13 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
colorbox-master/images/ie6/borderTopLeft.png | 0.35KB | 0.50KB | 0.00% |
colorbox-master/images/ie6/borderTopRight.png | 0.45KB | 0.53KB | 0.00% |
colorbox-master/images/border2.png | 0.17KB | 0.16KB | ▼ 2.35% |
photoswipe/icons@2x.png | 5.32KB | 3.39KB | ▼ 36.27% |
colorbox-master/images/ie6/borderTopCenter.png | 0.15KB | 0.19KB | 0.00% |