84% masoomshahid

Code Review | MasoomShahid

WordPress plugin MasoomShahid scored84%from 54 tests.

About plugin

  • Plugin page: masoomshahid
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9.2
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Aug 8, 2014
  • Number of updates: 12
  • Update frequency: every 11.9 days
  • Top authors: mortrza1371 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,877 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.08MB] [CPU: ▼5.40ms] Passed 4 tests

A check of server-side resources used by MasoomShahid
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.63 ▲3.76
Dashboard /wp-admin3.38 ▲0.0845.13 ▼2.67
Posts /wp-admin/edit.php3.50 ▲0.1446.02 ▼1.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.46 ▼13.71
Media Library /wp-admin/upload.php3.31 ▲0.0832.90 ▼3.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by MasoomShahid
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.29 ▼1.011.63 ▼0.6243.00 ▼5.02
Dashboard /wp-admin2,206 ▲214.83 ▼1.02109.31 ▲9.9440.31 ▼1.58
Posts /wp-admin/edit.php2,089 ▼02.18 ▲0.1539.95 ▲1.9336.08 ▲3.31
Add New Post /wp-admin/post-new.php1,530 ▼1223.13 ▲4.94646.52 ▲38.6656.63 ▼0.12
Media Library /wp-admin/upload.php1,388 ▲64.16 ▼0.0394.83 ▼5.3840.84 ▼2.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/masoomshahid/MasoomShahid.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 20 tag instead of maximum 10
Please take inspiration from this readme.txt

masoomshahid/MasoomShahid.php 92% from 13 tests

The principal PHP file in "MasoomShahid" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("masoomshahid.php" instead of "MasoomShahid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected473 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP122725453
CSS10020

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin