94% metro-theme-widget-titles

Code Review | Metro Theme Widget Titles

WordPress plugin Metro Theme Widget Titles scored 94% from 53 tests.

About plugin

  • Plugin page: metro-theme-widge...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 5.8.1
  • First release: May 19, 2013
  • Latest release: Aug 8, 2015
  • Number of updates: 17
  • Update frequency: every 47.7 days
  • Top authors: bhwebworks (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

30+ active / 2,743 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Metro Theme Widget Titles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.93 ▲11.80
Dashboard /wp-admin3.07 ▲0.0248.60 ▼0.45
Posts /wp-admin/edit.php3.12 ▲0.0242.48 ▼0.53
Add New Post /wp-admin/post-new.php5.44 ▲0.0187.56 ▼1,045.46
Media Library /wp-admin/upload.php3.02 ▲0.0133.46 ▼6.66

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Metro Theme Widget Titles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,650 ▲4415.90 ▲0.478.84 ▼0.5647.43 ▼8.60
Dashboard /wp-admin2,928 ▲785.95 ▲0.10135.34 ▼5.55110.76 ▲11.12
Posts /wp-admin/edit.php2,703 ▼02.69 ▲0.0167.96 ▼0.3086.90 ▼2.37
Add New Post /wp-admin/post-new.php1,853 ▼019.07 ▼0.06361.06 ▼25.77105.00 ▼6.29
Media Library /wp-admin/upload.php1,775 ▲35.01 ▼0.03143.69 ▼13.64116.45 ▲4.15

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/metro-theme-widget-titles/metro-theme-widget-titles.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: widget titles, studiopress metro theme

metro-theme-widget-titles/metro-theme-widget-titles.php 92% from 13 tests

The main file in "Metro Theme Widget Titles" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 270 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected74 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1686354
CSS13020

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.14
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/lines.png0.13KB0.10KB▼ 19.08%