90% dadevarzan-wp-journal

Code Review | Dadevarzan WordPress Journal

WordPress plugin Dadevarzan WordPress Journal scored90%from 54 tests.

About plugin

  • Plugin page: dadevarzan-wp-jou...
  • Plugin version: 1.2.5
  • 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 19, 2019
  • Latest release: May 31, 2022
  • Number of updates: 9
  • Update frequency: every 133.0 days
  • Top authors: dadevarzan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,266 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.13MB] [CPU: ▼5.63ms] Passed 4 tests

This is a short check of server-side resources used by Dadevarzan WordPress Journal
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1343.25 ▲2.12
Dashboard /wp-admin3.42 ▲0.1247.39 ▲0.62
Posts /wp-admin/edit.php3.53 ▲0.1751.22 ▼3.31
Add New Post /wp-admin/post-new.php6.11 ▲0.2286.11 ▼15.83
Media Library /wp-admin/upload.php3.34 ▲0.1132.37 ▼4.01

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Dadevarzan WordPress Journal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.26 ▼0.111.70 ▼0.1741.00 ▼1.74
Dashboard /wp-admin2,229 ▲495.63 ▼0.1688.10 ▼5.6739.09 ▼2.86
Posts /wp-admin/edit.php2,131 ▲282.02 ▼0.0244.47 ▲4.6544.97 ▲5.59
Add New Post /wp-admin/post-new.php1,562 ▲3418.21 ▼4.82650.71 ▲5.2480.81 ▲22.30
Media Library /wp-admin/upload.php1,431 ▲314.20 ▼0.03107.92 ▲2.3940.31 ▼2.24

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: wp, journal, wordpress, dadevarzan, dadehvarzan

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

The main PHP file in "Dadevarzan WordPress Journal" ver. 1.2.5 adds more information about the plugin and also serves as the entry point for this plugin
31 characters long description:
journal post type for wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected432 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25518345
PO File1363787

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected