Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.92MB] [CPU: ▼39.93ms] Passed 4 tests
This is a short check of server-side resources used by Excel Report Maker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.17 ▲1.80 |
Dashboard /wp-admin | 3.03 ▼0.28 | 23.85 ▼27.31 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 28.15 ▼21.01 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 23.47 ▼99.63 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 23.09 ▼11.78 |
Excel Reports /wp-admin/options-general.php?page=excel-report-maker | 3.03 | 24.65 |
Add New /wp-admin/post-new.php?post_type=excel_report | 3.03 | 25.88 |
All Excel Reports /wp-admin/edit.php?post_type=excel_report | 3.03 | 24.59 |
Server storage [IO: ▲4.26MB] [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: 254 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Excel Report Maker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 14.22 ▼0.01 | 1.78 ▼1.33 | 41.72 ▼0.13 |
Dashboard /wp-admin | 2,230 ▲50 | 5.53 ▼0.15 | 84.62 ▼13.14 | 39.36 ▼8.78 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.00 ▲0.04 | 42.22 ▲3.44 | 36.00 ▲2.46 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 23.01 ▼0.84 | 668.96 ▲5.83 | 56.96 ▲3.84 |
Media Library /wp-admin/upload.php | 1,432 ▲32 | 4.26 ▲0.06 | 115.28 ▲3.73 | 48.74 ▲5.29 |
Excel Reports /wp-admin/options-general.php?page=excel-report-maker | 927 | 2.01 | 27.51 | 25.68 |
Add New /wp-admin/post-new.php?post_type=excel_report | 1,625 | 2.55 | 54.48 | 62.82 |
All Excel Reports /wp-admin/edit.php?post_type=excel_report | 1,102 | 1.92 | 30.59 | 28.91 |
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
Please fix the following items
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=excel_report
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=excel-report-maker
- > Notice in wp-content/plugins/excel-report-maker/ui-option.php+19
Undefined index: excel-report-maker-action
- > GET request to /wp-admin/post-new.php?post_type=excel_report
- > Warning in wp-content/plugins/excel-report-maker/ui-excel_report_metabox.php+47
Invalid argument supplied for foreach()
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 90× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Settings' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Writer/PDF/mPDF.php:30
- > PHP Fatal error
Uncaught Error: Interface 'PHPExcel_RichText_ITextElement' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/RichText/TextElement.php:34
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Settings' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Chart/Renderer/jpgraph.php:30
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Writer/Excel2007/Drawing.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/CachedObjectStorage/Memory.php:36
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_Writer_Excel2007_WriterPart' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Writer/Excel2007/StringTable.php:36
- > PHP Warning
Use of undefined constant PHPEXCEL_ROOT - assumed 'PHPEXCEL_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php on line 29
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_RichText_TextElement' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/RichText/Run.php:34
- > PHP Fatal error
Uncaught Error: Class 'PHPExcel_CachedObjectStorage_CacheBase' not found in wp-content/plugins/excel-report-maker/phpexcel/Classes/PHPExcel/CachedObjectStorage/MemoryGZip.php:36
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add images for these screenshots: #1 (Open Setting -> Excel Reports), #2 (Entry new Excel report.), #3 (Report button and row action), #4 (Report button in Edit page), #5 (Click Report button or row action, then down load report.)
excel-report-maker/excel-report-maker.php Passed 13 tests
"Excel Report Maker" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
set post and postmeta values to excel file
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin51,924 lines of code in 201 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 11,672 | 35,707 | 51,604 |
JavaScript | 2 | 28 | 5 | 105 |
PO File | 1 | 43 | 46 | 105 |
Bourne Shell | 1 | 20 | 5 | 73 |
XML | 1 | 0 | 0 | 14 |
CSS | 1 | 2 | 0 | 12 |
JSON | 1 | 1 | 0 | 11 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,176)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 387)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 55.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,176.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 387.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 182 | |
▷ Abstract classes | 6 | 3.30% |
▷ Concrete classes | 176 | 96.70% |
▷ Final classes | 0 | 0.00% |
Methods | 2,735 | |
▷ Static methods | 621 | 22.71% |
▷ Public methods | 2,231 | 81.57% |
▷ Protected methods | 31 | 1.13% |
▷ Private methods | 473 | 17.29% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 799 | |
▷ Global constants | 118 | 14.77% |
▷ Class constants | 681 | 85.23% |
▷ Public constants | 681 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.44MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 88.97KB | 26.42KB | ▼ 70.31% |
screenshot-1.png | 67.07KB | 18.99KB | ▼ 71.68% |
screenshot-5.png | 30.06KB | 9.77KB | ▼ 67.51% |
screenshot-4.png | 138.15KB | 42.05KB | ▼ 69.56% |
screenshot-2.png | 131.26KB | 39.19KB | ▼ 70.14% |