84% haxtheweb

Code Review | haxtheweb

WordPress plugin haxtheweb scored 84% from 54 tests.

About plugin

  • Plugin page: haxtheweb
  • Plugin version: 3.9.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.4
  • WordPress version: 6.3.1
  • First release: May 21, 2020
  • Latest release: Jun 1, 2020
  • Number of updates: 6
  • Update frequency: every 2.8 days
  • Top authors: btopro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 712 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.67MB] [CPU: ▼19.44ms] Passed 4 tests

An overview of server-side resources used by haxtheweb
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.79 ▼2.63
Dashboard /wp-admin3.32 ▲0.0245.09 ▼3.59
Posts /wp-admin/edit.php3.37 ▲0.0247.31 ▼13.97
Add New Post /wp-admin/post-new.php3.14 ▼2.7538.13 ▼57.58
Media Library /wp-admin/upload.php3.24 ▲0.0237.98 ▲5.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for haxtheweb
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.33 ▼1.414.44 ▲2.6342.19 ▼3.63
Dashboard /wp-admin2,213 ▲284.86 ▼0.9697.35 ▼5.2936.40 ▼9.63
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0136.89 ▼5.0034.37 ▼1.79
Add New Post /wp-admin/post-new.php1,539 ▲1118.21 ▼4.83623.57 ▼27.4255.37 ▲5.61
Media Library /wp-admin/upload.php1,392 ▲14.24 ▲0.0797.37 ▼4.5039.48 ▼4.94

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/haxtheweb/haxtheweb.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: haxtheweb, disable gutenberg, editor, classic editor

haxtheweb/haxtheweb.php Passed 13 tests

The main file in "haxtheweb" v. 3.9.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
An ecosystem agnostic web editor to democratise the web and liberate users of platforms.

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
There were no executable files found in this plugin1,858 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3291321,809
JavaScript201340
CSS1009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions1684.21%
▷ Anonymous functions315.79%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.46MB with 0.30MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png471.29KB162.60KB▼ 65.50%