83% irecord-form

Code Review | WP iRecord Form - Record Wildlife

WordPress plugin WP iRecord Form - Record Wildlife scored83%from 54 tests.

About plugin

  • Plugin page: irecord-form
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2019
  • Latest release: Dec 18, 2019
  • Number of updates: 3
  • Update frequency: every 16.7 days
  • Top authors: wrconsultancy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /449 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
This plugin's installer ran successfully

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

A check of server-side resources used by WP iRecord Form - Record Wildlife
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.07 ▼1.83
Dashboard /wp-admin3.31 ▲0.0146.10 ▼1.71
Posts /wp-admin/edit.php3.36 ▲0.0148.83 ▲1.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.34 ▼7.19
Media Library /wp-admin/upload.php3.23 ▲0.0133.40 ▲2.64

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP iRecord Form - Record Wildlife
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.081.67 ▼0.3945.24 ▼0.53
Dashboard /wp-admin2,203 ▲155.92 ▲1.06111.56 ▲1.8943.33 ▲2.02
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0339.16 ▲2.9634.85 ▼0.02
Add New Post /wp-admin/post-new.php1,542 ▲2818.16 ▲0.68608.96 ▼17.4657.77 ▲0.76
Media Library /wp-admin/upload.php1,391 ▼04.16 ▼0.0695.59 ▼1.8441.16 ▼0.88

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/irecord-form/irecord-form.php:33

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 90% from 29 tests

readme.txt 88% 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: Screenshot #1 (No screenshots available.) image missing
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can look at the official readme.txt

irecord-form/irecord-form.php 92% from 13 tests

The entry point to "WP iRecord Form - Record Wildlife" version 1.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Requires PHP: Required version must match the one declared in readme.txt ("5.2.4" instead of "5.2")

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
No dangerous file extensions were detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1184855

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected