94% hypotext

Code Review | Hypotext

WordPress plugin Hypotext scored 94% from 53 tests.

About plugin

  • Plugin page: hypotext
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 5.8.1
  • First release: Jun 15, 2015
  • Latest release: Apr 6, 2021
  • Number of updates: 24
  • Update frequency: every 89.0 days
  • Top authors: Dejan SEO (100%)

Code review

53 tests

User reviews

1 review

Install metrics

100+ active / 2,513 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Hypotext
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.28 ▲14.77
Dashboard /wp-admin3.07 ▲0.0146.01 ▲1.88
Posts /wp-admin/edit.php3.12 ▲0.0148.39 ▲3.41
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.60 ▼1,045.12
Media Library /wp-admin/upload.php3.01 ▲0.0032.78 ▼10.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Hypotext: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲20116.33 ▲0.7717.01 ▲9.1546.17 ▼0.45
Dashboard /wp-admin2,931 ▲786.04 ▲0.21132.84 ▲1.10106.70 ▲7.93
Posts /wp-admin/edit.php2,706 ▼02.69 ▲0.0069.76 ▲3.3491.01 ▼7.47
Add New Post /wp-admin/post-new.php1,651 ▼20217.23 ▼1.70353.22 ▼1.53102.87 ▼3.14
Media Library /wp-admin/upload.php1,775 ▼05.00 ▼0.04137.49 ▼28.62112.84 ▼0.53

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hypotext/hypotext.php:57

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === hypotext === )
The official readme.txt might help

hypotext/hypotext.php Passed 13 tests

This is the main PHP file of "Hypotext" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
21 characters long description:
Hypotext integration.

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 plugin82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript151332
PHP162827
CSS10023

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected