Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.83ms] 75% from 4 tests
An overview of server-side resources used by DataCaptia - Open Graph plugin for WordPress
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,389.69ms on /wp-admin/admin.php?page=datacaptia-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 44.73 ▲5.55 |
Dashboard /wp-admin | 3.54 ▲0.19 | 55.13 ▼10.18 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.33 ▲4.76 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 87.32 ▼8.55 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 40.40 ▲2.67 |
DataCaptia /wp-admin/admin.php?page=data-captia-setting-page | 3.50 | 44.98 |
Recommendations /wp-admin/admin.php?page=datacaptia-recommendations | 7.74 | 1,389.69 |
Server storage [IO: ▲0.28MB] [DB: ▲0.67MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for DataCaptia - Open Graph plugin for WordPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 14.25 ▼0.10 | 1.88 ▲0.35 | 44.84 ▲2.57 |
Dashboard /wp-admin | 2,205 ▲25 | 5.52 ▼0.02 | 83.29 ▼3.88 | 81.22 ▲40.76 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.01 ▼0.00 | 34.01 ▼3.67 | 34.21 ▼0.14 |
Add New Post /wp-admin/post-new.php | 1,385 ▼141 | 16.43 ▼7.26 | 607.23 ▼94.25 | 48.65 ▼20.01 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.23 ▲0.00 | 95.34 ▼19.85 | 71.50 ▲23.34 |
DataCaptia /wp-admin/admin.php?page=data-captia-setting-page | 1,319 | 3.65 | 50.85 | 63.76 |
Recommendations /wp-admin/admin.php?page=datacaptia-recommendations | 2,922 | 2.22 | 29.12 | 67.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/data-captia/admin/template/option-setting.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Data_Capatia_Open_Graph' not found in wp-content/plugins/data-captia/includes/product-graph.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/data-captia/admin/template/general-setting.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Data_Capatia_Open_Graph' not found in wp-content/plugins/data-captia/includes/post-graph.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Data_Capatia_Open_Graph' not found in wp-content/plugins/data-captia/includes/page-graph.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/data-captia/includes/data-captia.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: ogtitle, graph, social share, datacaptia, open graph
data-captia/data-captia.php Passed 13 tests
The main file in "DataCaptia - Open Graph plugin for WordPress" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Easily enable og information OpenGraph in your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,264 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 184 | 122 | 1,038 |
JavaScript | 3 | 50 | 32 | 194 |
CSS | 2 | 4 | 0 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 34 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/whols-pro.png | 15.30KB | 7.40KB | ▼ 51.65% |
admin/assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
admin/assets/images/extensions/swatchly-pro.png | 13.99KB | 5.41KB | ▼ 61.37% |
admin/assets/images/default.png | 2.52KB | 1.29KB | ▼ 48.76% |