84% hatom-missing-fields

Code Review | hAtom Missing Fields

WordPress plugin hAtom Missing Fields scored 84% from 54 tests.

About plugin

  • Plugin page: hatom-missing-fields
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 4, 2018
  • Latest release: Mar 5, 2018
  • Number of updates: 3
  • Update frequency: every 387.7 days
  • Top authors: SultanICQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 684 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.38ms] Passed 4 tests

Server-side resources used by hAtom Missing Fields
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.66 ▼9.90
Dashboard /wp-admin3.37 ▲0.0743.31 ▼6.53
Posts /wp-admin/edit.php3.41 ▲0.0550.30 ▲3.31
Add New Post /wp-admin/post-new.php6.05 ▲0.16107.22 ▲7.49
Media Library /wp-admin/upload.php3.31 ▲0.0834.25 ▼0.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by hAtom Missing Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.74 ▲0.151.77 ▼0.6838.95 ▼11.26
Dashboard /wp-admin2,206 ▲215.84 ▼0.01110.47 ▼6.7444.24 ▼2.09
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0540.10 ▲3.4335.26 ▲0.45
Add New Post /wp-admin/post-new.php1,520 ▼2223.46 ▲5.18679.91 ▲22.8363.12 ▲7.55
Media Library /wp-admin/upload.php1,385 ▼64.29 ▲0.11101.28 ▼0.6044.96 ▼1.97

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/hatom-missing-fields/hatom-missing-fields.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: hatom

hatom-missing-fields/hatom-missing-fields.php Passed 13 tests

Analyzing the main PHP file in "hAtom Missing Fields" version 1.1.1
67 characters long description:
This plugin add missing hAtom fields in our wordpress installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin31 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19731

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin