90% what-singular-template

Code Review | What Singular Template

WordPress plugin What Singular Template scored90%from 54 tests.

About plugin

  • Plugin page: what-singular-tem...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: May 25, 2023
  • Number of updates: 3
  • Update frequency: every 54.3 days
  • Top authors: webmandesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /167 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼5.69ms] Passed 4 tests

Server-side resources used by What Singular Template
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.0143.81 ▲0.35
Dashboard /wp-admin3.59 ▲0.0254.12 ▲3.02
Posts /wp-admin/edit.php3.67 ▼0.0147.96 ▼3.10
Add New Post /wp-admin/post-new.php6.17 ▲0.0288.13 ▼22.92
Media Library /wp-admin/upload.php3.51 ▲0.0238.66 ▲2.91

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for What Singular Template
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.131.89 ▲0.2844.76 ▲5.76
Dashboard /wp-admin2,195 ▲155.63 ▼0.0586.48 ▼5.7543.31 ▼1.43
Posts /wp-admin/edit.php2,131 ▲312.00 ▼0.0136.21 ▼1.2837.12 ▲1.78
Add New Post /wp-admin/post-new.php1,532 ▲223.65 ▲0.35664.26 ▲16.5756.25 ▲6.11
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.04103.35 ▲3.9745.48 ▲2.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: show, reveal, display, webman design, template...

what-singular-template/what-singular-template.php Passed 13 tests

The entry point to "What Singular Template" version 1.0.0 is a PHP file that has certain tags in its header comment area
104 characters long description:
Displays name of template assigned to a post, page or public custom post type in admin posts list table.

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
Good job! No executable or dangerous file extensions detected62 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1569859
Markdown1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin