84% thematic-html5

Code Review | Thematic html5 plugin

WordPress plugin Thematic html5 plugin scored84%from 54 tests.

About plugin

  • Plugin page: thematic-html5
  • Plugin version: 0.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5.1
  • WordPress version: 6.3.1
  • First release: Aug 15, 2012
  • Latest release: Apr 6, 2013
  • Number of updates: 9
  • Update frequency: every 26.0 days
  • Top authors: middlesister (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼12.10ms] Passed 4 tests

Server-side resources used by Thematic html5 plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.89 ▼0.5818.68 ▼20.83
Dashboard /wp-admin3.35 ▲0.0144.97 ▼11.86
Posts /wp-admin/edit.php3.40 ▲0.0545.79 ▼2.95
Add New Post /wp-admin/post-new.php5.93 ▲0.0591.22 ▼12.76
Media Library /wp-admin/upload.php3.28 ▲0.0536.22 ▲3.94

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Thematic html5 plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.28 ▼0.121.72 ▲0.1037.24 ▼2.55
Dashboard /wp-admin2,195 ▲185.62 ▼0.0591.08 ▲0.4942.41 ▲1.19
Posts /wp-admin/edit.php2,103 ▲62.03 ▲0.0239.41 ▲1.9536.81 ▼2.41
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.06611.84 ▼38.0752.00 ▲0.90
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0296.93 ▼4.9643.10 ▼2.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • 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 shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/thematic-html5/thematic-html5.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: html5, thematic

thematic-html5/thematic-html5.php Passed 13 tests

The entry point to "Thematic html5 plugin" version 0.4.1 is a PHP file that has certain tags in its header comment area
72 characters long description:
A wordpress plugin to use html5 markup with the thematic theme framework

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin376 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143293321
Markdown119047
JavaScript1038

PHP code Passed 2 tests

An short overview of 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.19
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin