Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲1.94ms] Passed 4 tests
An overview of server-side resources used by Pressference Exporter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.83 ▼0.41 |
Dashboard /wp-admin | 3.41 ▲0.11 | 49.02 ▲1.02 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.30 ▲4.05 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 94.41 ▲5.06 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.93 ▲3.09 |
Server storage [IO: ▲2.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 157 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pf_exporter_profile |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
pf_db_version |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Pressference Exporter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲139 | 14.13 ▼0.46 | 1.94 ▼0.44 | 42.83 ▼5.85 |
Dashboard /wp-admin | 2,299 ▲111 | 5.35 ▲0.31 | 116.05 ▼0.66 | 45.87 ▲0.21 |
Posts /wp-admin/edit.php | 2,199 ▲110 | 2.47 ▲0.46 | 42.82 ▲2.55 | 33.83 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,602 ▲83 | 17.99 ▼5.16 | 596.28 ▼75.63 | 34.22 ▼23.75 |
Media Library /wp-admin/upload.php | 1,494 ▲103 | 4.83 ▲0.62 | 103.94 ▲8.03 | 42.10 ▼5.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_pf_exporter_profile
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- pf_db_version
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 0% 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× PHP files output text when accessed directly:
- > /wp-content/plugins/pressference-exporter/class/views/page-get-order.php
- > /wp-content/plugins/pressference-exporter/class/views/page-upgrade.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/pressference-exporter/class/views/page-email-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pressference-exporter/class/views/parts/parts-create-profile-metabox.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pressference-exporter/class/views/parts/parts-cloud-export-metabox.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pressference-exporter/class/views/parts/parts-profile-metabox.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pressference-exporter/class/views/parts/parts-filter-metabox.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/pressference-exporter/class/views/page-filters.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/pressference-exporter/class/views/parts/parts-filter-result-metabox.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/pressference-exporter/class/views/page-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/pressference-exporter/class/views/page-csv-settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
pressference-exporter/pressference-exporter.php 92% from 13 tests
"Pressference Exporter" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected30,452 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 2,023 | 184 | 18,840 |
JavaScript | 24 | 1,347 | 1,036 | 7,320 |
PHP | 32 | 750 | 1,119 | 4,221 |
JSON | 1 | 0 | 0 | 34 |
XML | 1 | 8 | 8 | 20 |
SVG | 3 | 0 | 0 | 11 |
Markdown | 1 | 5 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 21.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 212 | |
▷ Static methods | 4 | 1.89% |
▷ Public methods | 178 | 83.96% |
▷ Protected methods | 24 | 11.32% |
▷ Private methods | 10 | 4.72% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
47 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/SlickGrid/css/smoothness/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
assets/js/SlickGrid/images/stripes.png | 1.10KB | 0.10KB | ▼ 90.76% |
assets/js/SlickGrid/css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
assets/js/SlickGrid/images/column-grouping.png | 0.21KB | 0.21KB | 0.00% |
assets/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.08KB | 0.10KB | 0.00% |