90% dadevarzan-wp-subcompany

Code Review | Dadevarzan WordPress Subcompany

WordPress plugin Dadevarzan WordPress Subcompany scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-sub...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.0-6.0.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2019
  • Latest release: May 31, 2022
  • Number of updates: 6
  • Update frequency: every 198.3 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /607 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.00ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Subcompany
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1041.69 ▲4.25
Dashboard /wp-admin3.40 ▲0.0945.98 ▲0.50
Posts /wp-admin/edit.php3.50 ▲0.1442.97 ▼1.16
Add New Post /wp-admin/post-new.php6.05 ▲0.1685.81 ▼9.85
Media Library /wp-admin/upload.php3.32 ▲0.0834.91 ▲2.52

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

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

Browser metrics Passed 4 tests

Dadevarzan WordPress Subcompany: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.24 ▼1.132.35 ▲0.6355.81 ▲16.23
Dashboard /wp-admin2,230 ▲425.87 ▲0.9697.83 ▼4.3340.78 ▼2.41
Posts /wp-admin/edit.php2,116 ▲242.04 ▲0.0135.86 ▼1.2035.34 ▲1.63
Add New Post /wp-admin/post-new.php1,556 ▲3723.28 ▲0.14679.58 ▲69.0964.15 ▲12.45
Media Library /wp-admin/upload.php1,418 ▲274.21 ▲0.0196.78 ▼2.5143.24 ▼1.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: wp, subcompany, wordpress, subcompany cpt, dadehvarzan...

dadevarzan-wp-subcompany/dadevarzan-wp-subcompany.php Passed 13 tests

The principal PHP file in "Dadevarzan WordPress Subcompany" v. 1.1.6 is loaded by WordPress automatically on each request
34 characters long description:
subcompany post type for wordpress

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
Everything looks great! No dangerous files found in this plugin354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23118296
PO File1222358

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.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

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