Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲3.67ms] Passed 4 tests
Server-side resources used by geoFlickr
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 67.97 ▼22.44 |
Dashboard /wp-admin | 3.32 ▲0.02 | 124.28 ▲35.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 131.96 ▲28.21 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 179.72 ▲10.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 60.49 ▼2.08 |
GeoFlickr /wp-admin/options-general.php?page=geoflickr/geoflickr.php | 3.23 | 61.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by geoFlickr
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.83 ▼0.47 | 20.86 ▲14.53 | 75.84 ▼25.62 |
Dashboard /wp-admin | 2,201 ▲16 | 5.85 ▲0.94 | 226.64 ▲34.65 | 130.19 ▲30.60 |
Posts /wp-admin/edit.php | 2,096 ▲1 | 2.00 ▼0.03 | 77.93 ▲1.10 | 69.30 ▼22.14 |
Add New Post /wp-admin/post-new.php | 1,402 ▲42 | 17.69 ▲0.02 | 1,122.50 ▼153.54 | 94.43 ▲0.96 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.20 ▼0.01 | 179.93 ▼45.23 | 93.69 ▼17.59 |
GeoFlickr /wp-admin/options-general.php?page=geoflickr/geoflickr.php | 949 | 2.03 | 47.93 | 73.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× 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/geoflickr/geoflickr.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/geoflickr/map.php:8
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (15 tag instead of maximum 10)
geoflickr/geoflickr.php Passed 13 tests
"geoFlickr" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
128 characters long description:
GeoFlickr displays a map of the location where the photo was taken, for all embedded Flickr photos that contain GPS coordinates.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected445 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 47 | 212 |
JavaScript | 2 | 58 | 32 | 142 |
CSS | 2 | 14 | 3 | 91 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/yellow_marker16.png | 0.40KB | 0.32KB | ▼ 20.53% |
images/red_marker16.png | 0.55KB | 0.52KB | ▼ 5.86% |