Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/xlsx-viewer/XLSXviewer.php+43
Undefined variable: pagenow
Server metrics [RAM: ▼0.39MB] [CPU: ▼15.50ms] Passed 4 tests
An overview of server-side resources used by XLSXviewer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.96 ▼0.66 |
Dashboard /wp-admin | 3.65 ▲0.34 | 44.91 ▼3.65 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 48.94 ▲3.32 |
Add New Post /wp-admin/post-new.php | 3.43 ▼2.46 | 37.99 ▼61.01 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 36.55 ▲5.56 |
File Management /wp-admin/admin.php?page=file_management | 3.48 | 32.35 |
File Upload /wp-admin/admin.php?page=file_upload | 3.47 | 28.70 |
Table Setting /wp-admin/admin.php?page=XLSXviewer | 3.48 | 31.10 |
Server storage [IO: ▲1.50MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_XLSXviewer |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XLSXviewer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.74 ▲0.36 | 1.71 ▼0.03 | 43.70 ▼1.17 |
Dashboard /wp-admin | 2,233 ▲48 | 5.79 ▲0.89 | 109.77 ▼4.12 | 78.38 ▲33.06 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 1.99 ▼0.06 | 40.46 ▲3.34 | 37.56 ▲4.02 |
Add New Post /wp-admin/post-new.php | 1,559 ▲26 | 23.39 ▲0.25 | 688.91 ▲9.54 | 52.28 ▼0.62 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.24 ▼0.07 | 110.46 ▲9.93 | 44.36 ▲0.64 |
File Management /wp-admin/admin.php?page=file_management | 874 | 1.87 | 24.75 | 42.02 |
File Upload /wp-admin/admin.php?page=file_upload | 853 | 1.87 | 30.87 | 29.76 |
Table Setting /wp-admin/admin.php?page=XLSXviewer | 874 | 1.87 | 26.42 | 22.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please describe screenshot #7 in xlsx-viewer/assets to your readme.txt
xlsx-viewer/XLSXviewer.php 85% from 13 tests
This is the main PHP file of "XLSXviewer" version 2.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("xlsx-viewer.php" instead of "XLSXviewer.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 422 characters long)
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
Success! There were no dangerous files found in this plugin5,621 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 5 | 429 | 458 | 2,306 |
Markdown | 3 | 162 | 0 | 480 |
JavaScript | 2 | 16 | 10 | 102 |
CSS | 3 | 8 | 7 | 36 |
JSON | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 54.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 5.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 8 | 10.96% |
▷ Public methods | 61 | 83.56% |
▷ Protected methods | 12 | 16.44% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/XLSXviewer_icon_logo.png | 3.20KB | 1.97KB | ▼ 38.29% |
img/XLSXviewer_icon.png | 1.64KB | 0.90KB | ▼ 44.97% |