83% scrapme-advance-contact-form

Code Review | scrap.me

WordPress plugin scrap.me scored 83% from 54 tests.

About plugin

  • Plugin page: scrapme-advance-c...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Nov 10, 2014
  • Latest release: Jul 22, 2016
  • Number of updates: 14
  • Update frequency: every 56.3 days
  • Top authors: btushar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by scrap.me
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.53 ▼19.68
Dashboard /wp-admin3.32 ▲0.0148.19 ▼5.24
Posts /wp-admin/edit.php3.37 ▲0.0144.82 ▼12.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.52 ▼8.67
Media Library /wp-admin/upload.php3.24 ▲0.0135.73 ▲0.55

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

scrap.me: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.18 ▼1.461.89 ▼0.1041.43 ▼3.52
Dashboard /wp-admin2,225 ▲374.84 ▼1.07102.03 ▼14.4038.90 ▼7.75
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0236.48 ▼5.3631.26 ▼7.35
Add New Post /wp-admin/post-new.php1,546 ▲1323.16 ▲0.24604.49 ▼3.5858.97 ▲0.38
Media Library /wp-admin/upload.php1,398 ▲104.23 ▼0.00100.24 ▼3.7440.61 ▼1.96

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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)
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/scrapme-advance-contact-form/scrapme.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === scrapme-advance-contact-form === )
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

scrapme-advance-contact-form/scrapme.php 85% from 13 tests

The primary PHP file in "scrap.me" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("scrapme-advance-contact-form.php" instead of "scrapme.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 269 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected56 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1101756

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in 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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin