89% devto-articles-on-wp

Code Review | DevTo articles on WP

WordPress plugin DevTo articles on WP scored89%from 54 tests.

About plugin

  • Plugin page: devto-articles-on-wp
  • Plugin version: 0.0.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.8
  • WordPress version: 6.3.1
  • First release: Dec 26, 2019
  • Latest release: Sep 6, 2021
  • Number of updates: 5
  • Update frequency: every 124.0 days
  • Top authors: sourav926 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.04ms] Passed 4 tests

Analyzing server-side resources used by DevTo articles on WP
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.79 ▲1.03
Dashboard /wp-admin3.31 ▼0.0344.58 ▼12.26
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▲2.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.30 ▼17.02
Media Library /wp-admin/upload.php3.24 ▲0.0132.42 ▼3.89

Server storage [IO: ▲0.03MB] [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: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by DevTo articles on WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.36 ▼0.021.70 ▲0.1840.51 ▼0.78
Dashboard /wp-admin2,198 ▲245.66 ▲0.0193.00 ▲4.4238.58 ▼4.21
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0439.23 ▲3.5337.08 ▼0.75
Add New Post /wp-admin/post-new.php1,526 ▼323.42 ▲0.68600.50 ▼51.9552.00 ▼7.59
Media Library /wp-admin/upload.php1,400 ▼04.29 ▲0.1295.11 ▼6.6939.37 ▼6.41

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
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 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 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 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: rest-api, shortcode, post, devcommunity

devto-articles-on-wp/devtowp.php 77% from 13 tests

The main file in "DevTo articles on WP" v. 0.0.7 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:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("devto-articles-on-wp.php" instead of "devtowp.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 401 characters long)

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
No dangerous file extensions were detected227 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53947119
CSS140106
Markdown1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity3.25
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected