Benchmarks
Plugin footprint 83% 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.13MB] [CPU: ▼1.78ms] Passed 4 tests
This is a short check of server-side resources used by WPYog Documents
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.83 ▼2.28 |
Dashboard /wp-admin | 3.43 ▲0.12 | 56.17 ▲2.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 58.08 ▲13.05 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 85.86 ▼14.22 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.84 ▲7.10 |
Category /wp-admin/edit-tags.php?taxonomy=wpyog_document_category&post_type=wpyog_document | 3.35 | 43.04 |
WPYog Documents /wp-admin/edit.php?post_type=wpyog_document | 3.40 | 44.49 |
Shortcode Reference /wp-admin/edit.php?post_type=wpyog_document&page=document-shortcode-ref | 3.33 | 39.34 |
Add Document /wp-admin/post-new.php?post_type=wpyog_document | 6.13 | 88.36 |
Server storage [IO: ▲1.15MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WPYog Documents
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲213 | 14.87 ▲0.51 | 1.76 ▲0.17 | 39.92 ▼2.08 |
Dashboard /wp-admin | 2,374 ▲197 | 6.16 ▲0.51 | 120.92 ▲20.67 | 44.07 ▼1.48 |
Posts /wp-admin/edit.php | 2,304 ▲201 | 3.37 ▲1.35 | 50.68 ▲13.38 | 31.41 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.30 ▲0.30 | 666.94 ▼15.32 | 36.83 ▼30.55 |
Media Library /wp-admin/upload.php | 1,447 ▲47 | 4.17 ▼0.03 | 81.71 ▼25.27 | 43.77 ▲1.59 |
Category /wp-admin/edit-tags.php?taxonomy=wpyog_document_category&post_type=wpyog_document | 1,481 | 3.16 | 40.66 | 31.77 |
WPYog Documents /wp-admin/edit.php?post_type=wpyog_document | 1,322 | 3.43 | 49.35 | 30.87 |
Shortcode Reference /wp-admin/edit.php?post_type=wpyog_document&page=document-shortcode-ref | 1,033 | 3.05 | 38.62 | 75.99 |
Add Document /wp-admin/post-new.php?post_type=wpyog_document | 6,223 | 19.57 | 869.32 | 34.71 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpyog-documents/index.php:12
- > PHP Notice
Undefined variable: query in wp-content/plugins/wpyog-documents/templates/research-document-list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/wpyog-documents/templates/research-document-list.php:3
- > 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 93% 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
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4 in wpyog-documents/assets to your readme.txt
wpyog-documents/index.php 92% from 13 tests
Analyzing the main PHP file in "WPYog Documents" version 1.3.2
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpyog-documents.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,474 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 1 | 0 | 2,681 |
PHP | 2 | 34 | 33 | 408 |
CSS | 3 | 27 | 3 | 358 |
JavaScript | 2 | 6 | 6 | 27 |
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.38 |
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 | 22 | |
▷ Named functions | 20 | 90.91% |
▷ Anonymous functions | 2 | 9.09% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons/icon-arrow-left.png | 1.45KB | 0.40KB | ▼ 72.16% |
css/icons/icon-close.png | 1.18KB | 0.43KB | ▼ 63.71% |
img/wpyog-doc-icon.png | 21.58KB | 7.72KB | ▼ 64.24% |
css/icons/icon-arrow-right.png | 1.46KB | 0.41KB | ▼ 72.00% |
css/icons/broken-image.png | 0.26KB | 0.17KB | ▼ 33.33% |