84% tiny-tiny-check

Code Review | Tiny Tiny Check

WordPress plugin Tiny Tiny Check scored84%from 54 tests.

About plugin

  • Plugin page: tiny-tiny-check
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2013
  • Latest release: Nov 20, 2015
  • Number of updates: 19
  • Update frequency: every 51.1 days
  • Top authors: mitakas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.49ms] Passed 4 tests

An overview of server-side resources used by Tiny Tiny Check
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.39 ▼1.04
Dashboard /wp-admin3.33 ▲0.0352.13 ▼0.28
Posts /wp-admin/edit.php3.38 ▲0.0348.18 ▼2.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.60 ▼18.25
Media Library /wp-admin/upload.php3.25 ▲0.0237.19 ▲1.63

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tiny Tiny Check
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.472.01 ▲0.3944.01 ▲1.92
Dashboard /wp-admin2,198 ▲185.61 ▼0.0587.02 ▼5.2543.00 ▼0.45
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0237.16 ▼4.1235.30 ▼4.57
Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.39674.81 ▲15.9260.21 ▲10.98
Media Library /wp-admin/upload.php1,403 ▲34.16 ▲0.00102.72 ▼9.5646.68 ▼2.56

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
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/tiny-tiny-check/tiny-tiny-check.php:14

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: tt-rss, tiny tiny rss

tiny-tiny-check/tiny-tiny-check.php Passed 13 tests

This is the main PHP file of "Tiny Tiny Check" version 0.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
Show number of unread items in your Tiny Tiny RSS installation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected101 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1131162
PO File1131739

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected