Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/accounting-records-copywriter/accounting-records-copywriter.class.php+442
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.65MB] [CPU: ▼185.49ms] Passed 4 tests
Server-side resources used by Accounting Records Copywriter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼0.74 | 6.17 ▼13.27 |
Dashboard /wp-admin | 2.00 ▼1.06 | 6.83 ▼37.82 |
Posts /wp-admin/edit.php | 2.00 ▼1.11 | 6.11 ▼37.21 |
Add New Post /wp-admin/post-new.php | 2.00 ▼3.44 | 6.08 ▼640.57 |
Media Library /wp-admin/upload.php | 2.00 ▼1.00 | 5.55 ▼26.35 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Accounting Records Copywriter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 15.78 ▲0.09 | 10.94 ▼0.37 | 49.03 ▲1.82 |
Dashboard /wp-admin | 2,967 ▲36 | 5.94 ▼0.28 | 130.78 ▼26.09 | 113.22 ▼1.23 |
Posts /wp-admin/edit.php | 2,758 ▲19 | 2.75 ▲0.02 | 64.89 ▼1.25 | 90.85 ▼8.21 |
Add New Post /wp-admin/post-new.php | 3,689 ▲2,017 | 15.08 ▼3.78 | 417.74 ▲37.25 | 112.64 ▲2.69 |
Media Library /wp-admin/upload.php | 1,807 ▲59 | 5.04 ▲0.04 | 151.11 ▲7.41 | 122.46 ▼10.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/accounting-records-copywriter/accounting-records-copywriter.class.php+442
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accounting-records-copywriter/pages/main_settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/accounting-records-copywriter/accounting-records-copywriter.class.php:48
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: These screenshots do not have images: #1 (Fields copywriters), #2 (To order payment), #3 (Order of payment), #4 (Column with quantity of characters), #5 (General statistics of copywriters)
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
accounting-records-copywriter/accounting-records-copywriter.class.php 92% from 13 tests
This is the main PHP file of "Accounting Records Copywriter" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("accounting-records-copywriter.php" instead of "accounting-records-copywriter.class.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin796 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 171 | 45 | 582 |
PO File | 1 | 43 | 48 | 123 |
JavaScript | 1 | 7 | 3 | 47 |
CSS | 1 | 0 | 0 | 44 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 35.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 23 | 69.70% |
▷ Protected methods | 6 | 18.18% |
▷ Private methods | 4 | 12.12% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.38MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 88.85KB | 36.45KB | ▼ 58.98% |
screenshot-3.png | 88.82KB | 36.33KB | ▼ 59.09% |
screenshot-2.png | 61.46KB | 26.25KB | ▼ 57.29% |
screenshot-4.png | 81.51KB | 32.82KB | ▼ 59.73% |
screenshot-1.png | 73.26KB | 30.46KB | ▼ 58.42% |