84% raphicon

Code Review | RAphicon

WordPress plugin RAphicon scored84%from 54 tests.

About plugin

  • Plugin page: raphicon
  • Plugin version: 2.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: May 9, 2014
  • Latest release: Apr 8, 2015
  • Number of updates: 40
  • Update frequency: every 8.4 days
  • Top authors: rahendz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,581 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼13.57ms] Passed 4 tests

An overview of server-side resources used by RAphicon
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0633.76 ▼5.98
Dashboard /wp-admin3.39 ▲0.0541.09 ▼20.87
Posts /wp-admin/edit.php3.43 ▲0.0743.76 ▼1.62
Add New Post /wp-admin/post-new.php6.07 ▲0.1877.97 ▼21.94
Media Library /wp-admin/upload.php3.33 ▲0.1030.57 ▼5.50

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RAphicon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.55 ▼1.011.88 ▲0.0640.57 ▲0.39
Dashboard /wp-admin2,207 ▲165.83 ▲0.9393.62 ▼13.7038.87 ▼3.09
Posts /wp-admin/edit.php2,096 ▲102.03 ▲0.0240.45 ▲3.3234.79 ▲0.15
Add New Post /wp-admin/post-new.php1,534 ▲1523.30 ▲0.13617.43 ▼51.1756.42 ▼6.78
Media Library /wp-admin/upload.php1,395 ▲74.23 ▲0.03102.00 ▼13.3543.87 ▼3.64

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/raphicon/inc/lists.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
You can look at the official readme.txt

raphicon/raphicon.php 92% from 13 tests

The principal PHP file in "RAphicon" v. 2.1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin883 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21324627
SVG100229
JavaScript10021
CSS1026

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin