84% bestit-co

Code Review | BestIT-Co

WordPress plugin BestIT-Co scored 84% from 54 tests.

About plugin

  • Plugin page: bestit-co
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Dec 4, 2015
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: bestit-co (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 780 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.34ms] Passed 4 tests

Analyzing server-side resources used by BestIT-Co
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.98 ▼3.19
Dashboard /wp-admin3.73 ▲0.4343.34 ▼2.11
Posts /wp-admin/edit.php3.36 ▲0.0143.51 ▼1.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.16 ▼10.16
Media Library /wp-admin/upload.php3.23 ▲0.0033.61 ▲0.13

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

BestIT-Co: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲16614.78 ▲0.381.82 ▲0.0741.86 ▼3.17
Dashboard /wp-admin2,285 ▲974.89 ▲0.0096.79 ▼8.8853.47 ▲10.04
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0234.99 ▼4.2031.17 ▼2.70
Add New Post /wp-admin/post-new.php1,536 ▲323.03 ▼0.19646.81 ▼71.1750.96 ▼12.39
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.19100.87 ▼10.2743.86 ▼1.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bestit-co/bestit-co.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (This screenshot shows the activated plugin in your dashboard.)
You can take inspiration from this readme.txt

bestit-co/bestit-co.php Passed 13 tests

This is the main PHP file of "BestIT-Co" 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
113 characters long description:
افوزدن آمار بازدید پیشرفته | نمایش اخرین اخبار شرکت در پیشخوان

Code Analysis Passed 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
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12722

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin