10% rognone

Code Review | rognone

WordPress plugin rognone scored 10% from 54 tests.

About plugin

  • Plugin page: rognone
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 5, 2012
  • Latest release: Mar 20, 2013
  • Number of updates: 106
  • Update frequency: every 2.8 days
  • Top authors: federico.carrara (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,591 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/rognone/rognone.php+131
    Methods with the same name as their class will not be constructors in a future version of PHP; rognone has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼186.93ms] Passed 4 tests

This is a short check of server-side resources used by rognone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.92 ▼0.806.00 ▼13.57
Dashboard /wp-admin1.94 ▼1.125.19 ▼39.05
Posts /wp-admin/edit.php1.94 ▼1.176.26 ▼34.68
Add New Post /wp-admin/post-new.php1.94 ▼3.506.95 ▼645.43
Media Library /wp-admin/upload.php1.94 ▼1.076.52 ▼28.57
Rognone /wp-admin/options-general.php?page=rognone1.946.17

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 109 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

rognone: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.20 ▲0.128.28 ▼3.1151.67 ▲1.39
Dashboard /wp-admin2,978 ▲476.11 ▲0.19145.22 ▼2.06109.91 ▼2.99
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0058.64 ▼6.0690.75 ▲3.67
Add New Post /wp-admin/post-new.php1,675 ▼818.83 ▲0.04380.90 ▲8.42107.44 ▼5.98
Media Library /wp-admin/upload.php1,815 ▲85.03 ▼0.02141.27 ▼5.07116.09 ▼2.73
Rognone /wp-admin/options-general.php?page=rognone1,3952.0960.14104.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/rognone/rognone.php+131
    Methods with the same name as their class will not be constructors in a future version of PHP; rognone has a deprecated constructor

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=rognone
    • > Deprecated in wp-content/plugins/rognone/rognone.php+131
    Methods with the same name as their class will not be constructors in a future version of PHP; rognone has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=rognone
    • > Deprecated in wp-content/plugins/rognone/uagent_info.php+43
    Methods with the same name as their class will not be constructors in a future version of PHP; uagent_info has a deprecated constructor

SRP 50% from 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 following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/rognone/header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rognone/rognone.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (A spiral view with many many posts...), #2 (A spiral view with many texts posts), #3 (A less crowded view), #4 (Interface of the TV-like post visualizer)
  • Plugin Name: Please specify the plugin name on the first line ( === rognone === )
The official readme.txt is a good inspiration

rognone/rognone.php 92% from 13 tests

The main PHP file in "rognone" ver. 0.6.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 225 characters long)

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
There were no executable files found in this plugin7,193 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript235761,7013,938
CSS31021201,723
PHP31972881,075
SVG100361
Markdown158096

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity93.50
▷ Minimum class complexity55.00
▷ Maximum class complexity132.00
Average method complexity3.72
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods68100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
70 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jqui/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png0.27KB0.11KB▼ 56.99%
imgs/nero25perc.png0.15KB0.09KB▼ 37.91%
imgs/nero95perc.png0.15KB0.09KB▼ 37.91%
imgs/bianco95perc.png0.15KB0.09KB▼ 38.31%
imgs/nero75perc.png0.15KB0.09KB▼ 37.91%