Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/expertfile-expert-content-templates/public/class-expertfile-public.php+1173
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.35MB] [CPU: ▼47.33ms] Passed 4 tests
This is a short check of server-side resources used by ExpertFile
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.65 ▼0.82 | 9.65 ▼30.17 |
Dashboard /wp-admin | 2.67 ▼0.64 | 11.78 ▼39.80 |
Posts /wp-admin/edit.php | 2.67 ▼0.70 | 11.00 ▼36.69 |
Add New Post /wp-admin/post-new.php | 2.67 ▼3.23 | 10.39 ▼82.66 |
Media Library /wp-admin/upload.php | 2.67 ▼0.57 | 14.03 ▼17.79 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
ExpertFile: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲79 | 14.29 ▼0.05 | 1.87 ▲0.16 | 38.90 ▼6.87 |
Dashboard /wp-admin | 2,212 ▲32 | 5.57 ▼0.08 | 92.20 ▼5.92 | 90.37 ▲45.23 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.93 ▼0.02 | 36.54 ▼6.31 | 34.07 ▼2.17 |
Add New Post /wp-admin/post-new.php | 1,709 ▲183 | 20.34 ▼3.19 | 728.73 ▲94.13 | 57.36 ▲1.57 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.09 ▼0.10 | 103.58 ▲2.66 | 67.17 ▲23.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/expertfile-expert-content-templates/public/class-expertfile-public.php+1173
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/index.php
- > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/shortcodes.php
- > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/overview.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/ExpertAnswer.php:4
- > PHP Fatal error
Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/Design.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Sitemaps_Provider' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/QuestionSitemapProvider.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/spotlight/list.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expertanswer/post.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expert/directory.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/expertfile-expert-content-templates/admin/partials/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/spotlight/post.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expert/featured.php:3
- > PHP Fatal error
Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/Inquiry.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in expertfile-expert-content-templates/assets to your readme.txt
expertfile-expert-content-templates/expertfile.php 85% from 13 tests
Analyzing the main PHP file in "ExpertFile" version 1.0.45
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("expertfile-expert-content-templates.php" instead of "expertfile.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin10,594 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 808 | 128 | 7,016 |
JavaScript | 25 | 400 | 46 | 2,544 |
CSS | 4 | 76 | 192 | 996 |
JSON | 1 | 0 | 0 | 32 |
SVG | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 17.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 19 | 17.12% |
▷ Public methods | 102 | 91.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 8.11% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 34 | |
▷ Global constants | 34 | 100.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
12 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/inquiry/circle_research.png | 5.64KB | 3.15KB | ▼ 44.06% |
public/img/inquiry/circle_donor.png | 6.15KB | 3.71KB | ▼ 39.69% |
public/img/expertfile.png | 4.46KB | 2.63KB | ▼ 40.95% |
public/img/inquiry/circle_partner.png | 6.88KB | 4.05KB | ▼ 41.14% |
public/img/inquiry/circle_meeting.png | 3.69KB | 1.59KB | ▼ 57.05% |