79% tinysource

Code Review | tinySource

WordPress plugin tinySource scored 79% from 54 tests.

About plugin

  • Plugin page: tinysource
  • Plugin version: 0.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.0.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2010
  • Latest release: Aug 12, 2015
  • Number of updates: 14
  • Update frequency: every 130.4 days
  • Top authors: deployer (71.43%)ideag (35.71%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.59MB] [CPU: ▼8.44ms] Passed 4 tests

A check of server-side resources used by tinySource
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0947.33 ▲6.01
Dashboard /wp-admin3.39 ▲0.0958.92 ▲4.54
Posts /wp-admin/edit.php3.49 ▲0.1355.73 ▲7.52
Add New Post /wp-admin/post-new.php3.24 ▼2.6443.46 ▼50.18
Media Library /wp-admin/upload.php3.32 ▲0.0941.26 ▲5.88
Settings /wp-admin/edit.php?post_type=tinysource&page=tinysource_settings3.2837.82
Add New /wp-admin/post-new.php?post_type=tinysource3.2240.97
Sources /wp-admin/edit.php?post_type=tinysource3.3440.92

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

tinySource: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲12413.12 ▼1.261.82 ▲0.0443.95 ▼2.22
Dashboard /wp-admin2,237 ▲634.87 ▼0.07102.85 ▼13.4738.75 ▼7.75
Posts /wp-admin/edit.php2,120 ▲342.03 ▲0.0440.69 ▲6.9235.10 ▲1.06
Add New Post /wp-admin/post-new.php6,492 ▲4,95822.20 ▼0.54889.74 ▲245.2160.42 ▲3.24
Media Library /wp-admin/upload.php1,422 ▲314.19 ▼0.1596.22 ▼4.3642.15 ▲1.15
Settings /wp-admin/edit.php?post_type=tinysource&page=tinysource_settings8092.0625.0224.37
Add New /wp-admin/post-new.php?post_type=tinysource2,2387.61180.4464.68
Sources /wp-admin/edit.php?post_type=tinysource1,0811.9329.6931.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+86
    Trying to get property 'ID' of non-object
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+43
    Undefined index: link
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+86
    Undefined index: order
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+91
    Undefined index: _tinysource_source
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+44
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/post-new.php?post_type=tinysource
    • > Notice in wp-content/plugins/tinysource/tinysource.php+44
    Undefined index: tinysource_order

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 take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/tinysource/tinysource.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: text, custom-post-type, source

tinysource/tinysource.php Passed 13 tests

The main PHP script in "tinySource" version 0.2.3 is automatically included on every request by WordPress
31 characters long description:
Simple tool to note text source

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin151 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13041151

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin