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.34MB] [CPU: ▼7.37ms] Passed 4 tests
Server-side resources used by OpenGraphiq Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 44.16 ▼5.60 |
Dashboard /wp-admin | 3.64 ▲0.34 | 55.62 ▲4.92 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 46.68 ▼12.28 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 87.61 ▼9.84 |
Media Library /wp-admin/upload.php | 3.56 ▲0.33 | 37.34 ▼1.74 |
All OG Templates /wp-admin/edit.php?post_type=opengraphiqtemplates | 3.60 | 43.34 |
Add New /wp-admin/post-new.php?post_type=opengraphiqtemplates | 3.62 | 47.44 |
Settings /wp-admin/edit.php?post_type=opengraphiqtemplates&page=opengraphiq_settings | 3.57 | 38.07 |
Server storage [IO: ▲9.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OpenGraphiq Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.35 ▼1.02 | 1.84 ▼0.71 | 42.07 ▼8.89 |
Dashboard /wp-admin | 2,253 ▲62 | 4.84 ▼0.04 | 114.87 ▲12.00 | 42.39 ▼1.75 |
Posts /wp-admin/edit.php | 2,143 ▲57 | 2.06 ▲0.04 | 34.61 ▼6.46 | 35.44 ▼1.68 |
Add New Post /wp-admin/post-new.php | 1,560 ▲15 | 24.29 ▲1.01 | 684.56 ▲42.46 | 62.06 ▼0.32 |
Media Library /wp-admin/upload.php | 1,432 ▲41 | 4.25 ▲0.07 | 94.73 ▼2.45 | 41.06 ▼1.83 |
All OG Templates /wp-admin/edit.php?post_type=opengraphiqtemplates | 1,120 | 2.02 | 33.23 | 29.94 |
Add New /wp-admin/post-new.php?post_type=opengraphiqtemplates | 1,972 | 5.67 | 99.54 | 36.07 |
Settings /wp-admin/edit.php?post_type=opengraphiqtemplates&page=opengraphiq_settings | 1,048 | 3.13 | 36.80 | 27.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=opengraphiqtemplates&page=opengraphiq_settings
- > Intervention (severe) in unknown
/wp-admin/post-new.php?post_type=opengraphiqtemplates - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
opengraphiq-lite/opengraphiq-lite.php Passed 13 tests
This is the main PHP file of "OpenGraphiq Lite" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Enables you to create Open Graph images for your pages and posts - Lite version
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin11,474 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 151 | 473 | 7,407 |
CSS | 3 | 212 | 170 | 1,995 |
PHP | 10 | 450 | 315 | 1,546 |
XML | 1 | 8 | 16 | 526 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 56.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 217.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 50 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 24.24% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
demo/assets/logo-black-1.png | 0.57KB | 0.58KB | 0.00% |
admin/resources/og-static-image.png | 13.72KB | 7.92KB | ▼ 42.26% |
demo/assets/og-logo.png | 13.72KB | 7.92KB | ▼ 42.26% |