84% eyeta-biztool

Code Review | Eyeta Biztool

WordPress plugin Eyeta Biztool scored84%from 54 tests.

About plugin

  • Plugin page: eyeta-biztool
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.2-4.5.2
  • WordPress version: 6.3.1
  • First release: Jul 29, 2016
  • Latest release: Jul 29, 2016
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: Yuichiro ABE (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲1.02MB] [CPU: ▼8.25ms] Passed 4 tests

This is a short check of server-side resources used by Eyeta Biztool
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.71 ▲1.2548.61 ▲6.06
Dashboard /wp-admin4.42 ▲1.0736.38 ▼27.01
Posts /wp-admin/edit.php4.37 ▲1.0241.10 ▼5.20
Add New Post /wp-admin/post-new.php6.68 ▲0.7980.53 ▼6.77
Media Library /wp-admin/upload.php4.42 ▲1.1939.81 ▲5.98

Server storage [IO: ▲2.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 213 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Eyeta Biztool: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,852 ▲10613.18 ▼1.111.88 ▲0.2042.95 ▼3.06
Dashboard /wp-admin2,223 ▲345.83 ▲0.89106.98 ▼3.5139.28 ▼5.34
Posts /wp-admin/edit.php2,112 ▲231.98 ▼0.0239.67 ▲5.4037.34 ▲2.50
Add New Post /wp-admin/post-new.php1,537 ▲14523.27 ▲4.82685.74 ▲22.3256.14 ▲9.96
Media Library /wp-admin/upload.php1,411 ▲264.17 ▲0.0093.61 ▼7.2741.81 ▼2.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 42× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/eyeta-biztool/includes/wpalchemy/metaboxes/setup.php on line 3
    • > PHP Notice
      Undefined variable: mb in wp-content/plugins/eyeta-biztool/view/metabox.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'WPAlchemy_MetaBox' not found in wp-content/plugins/eyeta-biztool/includes/wpalchemy/metaboxes/simple-spec.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_plugin_path() on null in wp-content/plugins/eyeta-biztool/view/setting/table.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'eyeta_biztool\\Biztool_Field' not found in wp-content/plugins/eyeta-biztool/core/class/field/file.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'eyeta_biztool\\Biztool_Field' not found in wp-content/plugins/eyeta-biztool/core/class/field/user.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'eyeta_biztool\\Biztool_Field' not found in wp-content/plugins/eyeta-biztool/core/class/field/email.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'eyeta_biztool\\Biztool_Field' not found in wp-content/plugins/eyeta-biztool/core/class/field/number.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WPAlchemy_MetaBox' not found in wp-content/plugins/eyeta-biztool/includes/wpalchemy/metaboxes/radio-spec.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WPAlchemy_MetaBox' not found in wp-content/plugins/eyeta-biztool/includes/wpalchemy/metaboxes/full-spec.php:3

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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

eyeta-biztool/eyeta-biztool.php Passed 13 tests

"Eyeta Biztool" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
easy-to-use custom fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin12,724 lines of code in 209 files:
LanguageFilesBlank linesComment linesLines of code
PHP692,1112,7367,074
JavaScript1297481,1985,153
Sass54710311
CSS43512137
Markdown121042
Ruby18127

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity29.08
▷ Minimum class complexity1.00
▷ Maximum class complexity242.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods295
▷ Static methods165.42%
▷ Public methods28897.63%
▷ Protected methods62.03%
▷ Private methods10.34%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin