84% anything-for-hire

Code Review | Anything for Hire

WordPress plugin Anything for Hire scored 84% from 54 tests.

About plugin

  • Plugin page: anything-for-hire
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.6-4.9.6
  • WordPress version: 6.3.1
  • First release: Jun 29, 2018
  • Latest release: Jun 29, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mobowp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Anything for Hire
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.64 ▼4.57
Dashboard /wp-admin3.32 ▲0.0246.72 ▲0.26
Posts /wp-admin/edit.php3.37 ▲0.0149.92 ▲1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.82 ▼5.51
Media Library /wp-admin/upload.php3.24 ▲0.0137.35 ▲3.39

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Anything for Hire
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.24 ▼1.152.12 ▼0.0641.30 ▼4.05
Dashboard /wp-admin2,221 ▲305.83 ▲1.0094.37 ▼6.1369.85 ▲25.97
Posts /wp-admin/edit.php2,104 ▲152.00 ▲0.0138.21 ▼1.8234.54 ▼1.48
Add New Post /wp-admin/post-new.php1,413 ▼12918.13 ▼0.04676.60 ▲7.5043.89 ▼21.77
Media Library /wp-admin/upload.php1,397 ▲154.25 ▲0.0696.78 ▼20.3266.69 ▲13.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/anything-for-hire/index.php

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: anything for hire, anything for hire plugin, anything for hire partner widget

anything-for-hire/index.php 85% from 13 tests

The entry point to "Anything for Hire" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("anything-for-hire.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1181759

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
favicon.png0.59KB0.61KB0.00%
logo.png2.94KB1.58KB▼ 46.40%