84% reviews-for-freelancehunt

Code Review | Reviews for freelancehunt

WordPress plugin Reviews for freelancehunt scored84%from 54 tests.

About plugin

  • Plugin page: reviews-for-freel...
  • Plugin version: 2.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3-5.3.2
  • WordPress version: 6.3.1
  • First release: May 5, 2019
  • Latest release: Feb 14, 2020
  • Number of updates: 8
  • Update frequency: every 35.9 days
  • Top authors: v.chuy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.38ms] Passed 4 tests

Server-side resources used by Reviews for freelancehunt
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.72 ▲1.45
Dashboard /wp-admin3.38 ▲0.0763.88 ▲12.46
Posts /wp-admin/edit.php3.43 ▲0.0751.33 ▲1.02
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.58 ▼15.50
Media Library /wp-admin/upload.php3.30 ▲0.0733.77 ▼4.47
Freelancehunt reviews /wp-admin/options-general.php?page=freelancehunt_slug3.2632.50

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Reviews for freelancehunt
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲6114.25 ▼0.141.93 ▼0.2844.77 ▼6.41
Dashboard /wp-admin2,196 ▲225.53 ▼0.0288.26 ▼14.6337.35 ▼6.44
Posts /wp-admin/edit.php2,104 ▲71.99 ▲0.0440.04 ▲3.0337.45 ▲0.96
Add New Post /wp-admin/post-new.php1,529 ▲123.40 ▲0.38664.82 ▼17.6062.74 ▲1.89
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.0199.45 ▼13.7142.33 ▼3.33
Freelancehunt reviews /wp-admin/options-general.php?page=freelancehunt_slug7882.0025.2628.82

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 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/reviews-for-freelancehunt/freelancehunt-revievs.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: multilingual, freelancehuntcom, reviews for freelancehunt, feedback

reviews-for-freelancehunt/freelancehunt-revievs.php 85% from 13 tests

The entry point to "Reviews for freelancehunt" version 2.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reviews-for-freelancehunt.php" instead of "freelancehunt-revievs.php")

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 plugin1,221 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG100655
PHP18317358
CSS519135161
PO File1161747

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.46
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png49.61KB24.28KB▼ 51.06%