78% devranter

Code Review | Devranter

WordPress plugin Devranter scored78%from 54 tests.

About plugin

  • Plugin page: devranter
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Jul 13, 2016
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: chaensel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /593 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.68ms] Passed 4 tests

An overview of server-side resources used by Devranter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.81 ▼7.16
Dashboard /wp-admin3.35 ▲0.0546.87 ▼6.94
Posts /wp-admin/edit.php3.47 ▲0.1146.89 ▼1.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0590.76 ▼3.16
Media Library /wp-admin/upload.php3.27 ▲0.0535.12 ▼0.61
Devranter /wp-admin/options-general.php?page=devranter-options3.2427.49

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
Just a few items left to fix
  • You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/devranter/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/devranter_templates/devranter.custom.css
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_devranter_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Devranter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲9813.30 ▼1.264.66 ▲2.6437.70 ▼8.11
Dashboard /wp-admin2,210 ▲254.88 ▼0.96110.26 ▼6.4743.29 ▼0.29
Posts /wp-admin/edit.php2,093 ▲72.05 ▲0.0538.80 ▲4.2034.77 ▼1.41
Add New Post /wp-admin/post-new.php1,517 ▼2217.73 ▼5.70661.28 ▼22.1857.62 ▲2.60
Media Library /wp-admin/upload.php1,392 ▲74.18 ▲0.00114.97 ▼5.1444.58 ▼3.47
Devranter /wp-admin/options-general.php?page=devranter-options8982.0625.6932.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_devranter_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/devranter/devranter.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/devranter/devranter-admin.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: devrant, developer, quotes

devranter/devranter.php Passed 13 tests

"Devranter" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
Display awesome devrant rants. This is an UNOFFICIAL plugin

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
Good job! No executable or dangerous file extensions detected321 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP647100271
CSS1151050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods866.67%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin