78% tweetific

Code Review | Tweetific

WordPress plugin Tweetific scored 78% from 54 tests.

About plugin

  • Plugin page: tweetific
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0
  • WordPress version: 6.3.1
  • First release: Dec 24, 2017
  • Latest release: Dec 24, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: tomhanstead (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 471 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.04MB] [CPU: ▼4.64ms] Passed 4 tests

This is a short check of server-side resources used by Tweetific
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.08446.02 ▲403.36
Dashboard /wp-admin3.34 ▲0.0445.06 ▼6.81
Posts /wp-admin/edit.php3.39 ▲0.0345.36 ▲1.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.95 ▼12.98
Media Library /wp-admin/upload.php3.26 ▲0.0332.71 ▼0.23
Tweetific Settings /wp-admin/options-general.php?page=tweetific_settings3.2634.87

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
tweetific_version
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Tweetific: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.62 ▼0.778.45 ▲6.5641.61 ▼0.74
Dashboard /wp-admin2,211 ▲235.83 ▲0.9696.66 ▼8.4739.03 ▼8.12
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0140.08 ▲3.1735.72 ▲1.65
Add New Post /wp-admin/post-new.php1,521 ▲718.03 ▲0.50641.38 ▼38.4656.61 ▼16.56
Media Library /wp-admin/upload.php1,399 ▲114.19 ▲0.0298.74 ▼10.1840.95 ▼3.35
Tweetific Settings /wp-admin/options-general.php?page=tweetific_settings1,0513.3047.3828.74

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
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • tweetific_version
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tweetific/includes/lib/twitter-api-php/index.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tweetific/includes/lib/widget.php:3

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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Description of first screenshot named screenshot-1), #2 (Description of second screenshot named screenshot-2), #3 (Description of third screenshot named screenshot-3)
The official readme.txt might help

tweetific/tweetific.php 92% from 13 tests

The main PHP file in "Tweetific" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "4.0")

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
No dangerous file extensions were detected1,259 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP11292560951
JavaScript72515138
LESS113065
Sass115058
JSON20046
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity22.83
▷ Minimum class complexity5.00
▷ Maximum class complexity62.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4692.00%
▷ Protected methods00.00%
▷ Private methods48.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin