10% accounting-records-copywriter

Code Review | Accounting Records Copywriter

WordPress plugin Accounting Records Copywriter scored 10% from 54 tests.

About plugin

  • Plugin page: accounting-record...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 5.8.1
  • First release: Sep 19, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 3
  • Update frequency: every 27.0 days
  • Top authors: Smiling_Hemp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 817 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.98 ▼0.746.17 ▼13.27
Dashboard /wp-admin2.00 ▼1.066.83 ▼37.82
Posts /wp-admin/edit.php2.00 ▼1.116.11 ▼37.21
Add New Post /wp-admin/post-new.php2.00 ▼3.446.08 ▼640.57
Media Library /wp-admin/upload.php2.00 ▼1.005.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲9715.78 ▲0.0910.94 ▼0.3749.03 ▲1.82
Dashboard /wp-admin2,967 ▲365.94 ▼0.28130.78 ▼26.09113.22 ▼1.23
Posts /wp-admin/edit.php2,758 ▲192.75 ▲0.0264.89 ▼1.2590.85 ▼8.21
Add New Post /wp-admin/post-new.php3,689 ▲2,01715.08 ▼3.78417.74 ▲37.25112.64 ▲2.69
Media Library /wp-admin/upload.php1,807 ▲595.04 ▲0.04151.11 ▲7.41122.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

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
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP417145582
PO File14348123
JavaScript17347
CSS10044

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 code0.33
Average class complexity35.67
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods13.03%
▷ Public methods2369.70%
▷ Protected methods618.18%
▷ Private methods412.12%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
screenshot-5.png88.85KB36.45KB▼ 58.98%
screenshot-3.png88.82KB36.33KB▼ 59.09%
screenshot-2.png61.46KB26.25KB▼ 57.29%
screenshot-4.png81.51KB32.82KB▼ 59.73%
screenshot-1.png73.26KB30.46KB▼ 58.42%