84% htm-and-underscores-on-pages-and-post

Code Review | .htm and underscores on PAGES

WordPress plugin .htm and underscores on PAGES scored84%from 54 tests.

About plugin

  • Plugin page: htm-and-underscor...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2014
  • Latest release: Sep 4, 2014
  • Number of updates: 22
  • Update frequency: every 4.6 days
  • Top authors: debasispattnayak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,736 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼12.48ms] Passed 4 tests

Server-side resources used by .htm and underscores on PAGES
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0133.40 ▼5.52
Dashboard /wp-admin3.32 ▼0.0244.97 ▼19.90
Posts /wp-admin/edit.php3.37 ▲0.0246.18 ▲0.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.54 ▼21.85
Media Library /wp-admin/upload.php3.24 ▲0.0233.17 ▼2.63

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for .htm and underscores on PAGES
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,751 ▲513.23 ▼1.191.73 ▲0.0311.84 ▼32.14
Dashboard /wp-admin2,206 ▲184.85 ▼0.1094.44 ▼9.1238.70 ▼6.32
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0139.45 ▲4.5933.43 ▲1.08
Add New Post /wp-admin/post-new.php1,514 ▼517.70 ▼5.39684.90 ▼5.2269.03 ▲16.76
Media Library /wp-admin/upload.php1,388 ▼34.21 ▲0.0699.77 ▲0.7943.84 ▼2.05

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
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/htm-and-underscores-on-pages-and-post/htm-n-underscores-on-pages.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: htm, page, underscores in permalinks, plugin, permalinks...

htm-and-underscores-on-pages-and-post/htm-n-underscores-on-pages.php 92% from 13 tests

".htm and underscores on PAGES" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("htm-and-underscores-on-pages-and-post.php" instead of "htm-n-underscores-on-pages.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin66 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132266

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin