10% plugitter

Code Review | Twitter Ranking

WordPress plugin Twitter Ranking scored10%from 54 tests.

About plugin

  • Plugin page: plugitter
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.1-4.0.0
  • WordPress version: 6.3.1
  • First release: Sep 6, 2014
  • Latest release: Sep 8, 2014
  • Number of updates: 23
  • Update frequency: every 0.1 days
  • Top authors: dago_ar (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /844 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/plugitter/widget-plugin.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_ct_ranking has a deprecated constructor

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

This is a short check of server-side resources used by Twitter Ranking
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.10 ▼30.69
Dashboard /wp-admin2.30 ▼1.0011.73 ▼34.78
Posts /wp-admin/edit.php2.30 ▼1.0510.27 ▼36.83
Add New Post /wp-admin/post-new.php2.30 ▼3.589.78 ▼80.22
Media Library /wp-admin/upload.php2.30 ▼0.9310.07 ▼24.23

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_wp_ct_ranking
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Twitter Ranking
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.201.72 ▼0.1243.91 ▼1.13
Dashboard /wp-admin2,198 ▲215.69 ▲0.0582.11 ▼7.5838.03 ▼0.88
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0136.09 ▲0.9430.37 ▼6.49
Add New Post /wp-admin/post-new.php1,535 ▲918.35 ▼4.87595.08 ▼90.1667.35 ▼15.25
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0594.95 ▼8.1339.91 ▼3.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in wp_ct_ranking is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_wp_ct_ranking
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/plugitter/widget-plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: widget, twitter, ranking, sidebar, plugin

plugitter/widget-plugin.php 92% from 13 tests

The main PHP file in "Twitter Ranking" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("plugitter.php" instead of "widget-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11324110
PO File1182156
CSS12018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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