89% tools-engine

Code Review | Tools Engine - AIO Custom Fields

WordPress plugin Tools Engine - AIO Custom Fields scored89%from 54 tests.

About plugin

  • Plugin page: tools-engine
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Dec 29, 2022
  • Number of updates: 11
  • Update frequency: every 63.6 days
  • Top authors: smackcoders (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,611 total downloads

Benchmarks

Plugin footprint 83% 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 gracefully, with no errors

Server metrics [RAM: ▲2.05MB] [CPU: ▲7.92ms] Passed 4 tests

This is a short check of server-side resources used by Tools Engine - AIO Custom Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0153.04 ▲15.21
Dashboard /wp-admin5.39 ▲2.0461.29 ▲1.36
Posts /wp-admin/edit.php5.42 ▲2.0661.38 ▲19.47
Add New Post /wp-admin/post-new.php7.97 ▲2.0892.12 ▲1.15
Media Library /wp-admin/upload.php5.30 ▲2.0751.68 ▲13.97
Add New /wp-admin/post-new.php?post_type=tools-engine5.3861.32
Tools /wp-admin/edit.php?post_type=tools-engine&page=tools5.2944.85
Field Groups /wp-admin/edit.php?post_type=tools-engine5.3748.38

Server storage [IO: ▲6.10MB] [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: 89 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Tools Engine - AIO Custom Fields
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,055 ▲30915.32 ▲0.961.68 ▲0.0142.62 ▲3.67
Dashboard /wp-admin2,406 ▲2326.99 ▲1.38108.40 ▲16.9482.07 ▲43.66
Posts /wp-admin/edit.php2,493 ▲3934.35 ▲2.3353.01 ▲15.0670.34 ▲32.15
Add New Post /wp-admin/post-new.php6,554 ▲5,02630.96 ▲7.961,218.09 ▲554.00118.68 ▲59.01
Media Library /wp-admin/upload.php1,637 ▲2375.55 ▲1.4790.13 ▼23.9189.60 ▲42.91
Add New /wp-admin/post-new.php?post_type=tools-engine2,1429.64324.5099.50
Tools /wp-admin/edit.php?post_type=tools-engine&page=tools1,2307.4982.0469.44
Field Groups /wp-admin/edit.php?post_type=tools-engine1,4997.2384.1693.55

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add new custom fields under field group.), #2 (Field Groups List View.), #3 (Custom Field Edit View.), #4 (Theme Code Section.), #5 (WordPress edit screen & custom field data.)
You can take inspiration from this readme.txt

tools-engine/tools-engine.php 92% from 13 tests

The primary PHP file in "Tools Engine - AIO Custom Fields" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected17,452 lines of code in 66 files:
LanguageFilesBlank linesComment linesLines of code
PHP511,6258599,248
CSS103131775,498
SVG2002,695
JavaScript302711

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 220)
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity35.82
▷ Minimum class complexity2.00
▷ Maximum class complexity323.00
Average method complexity6.86
▷ Minimum method complexity1.00
▷ Maximum method complexity220.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes50
▷ Abstract classes00.00%
▷ Concrete classes50100.00%
▷ Final classes00.00%
Methods297
▷ Static methods17960.27%
▷ Public methods29699.66%
▷ Protected methods00.00%
▷ Private methods10.34%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.64MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png125.80KB33.31KB▼ 73.52%
assets/images/warning.png0.56KB0.24KB▼ 57.02%
assets/images/alert.png3.23KB2.86KB▼ 11.31%
assets/images/info.png0.56KB0.24KB▼ 57.02%
screenshot-1.png96.51KB24.93KB▼ 74.17%