10% eazy-twitter-cards

Code Review | Eazy Twitter Cards For Posts

WordPress plugin Eazy Twitter Cards For Posts scored10%from 54 tests.

About plugin

  • Plugin page: eazy-twitter-cards
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 1, 2014
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: r0bsc0tt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /959 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
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Error in wp-content/plugins/eazy-twitter-cards/eazy-twitter-cards-action.php+5
    Uncaught Error: Call to undefined function get_field() in wp-content/plugins/eazy-twitter-cards/eazy-twitter-cards-action.php:5
    Stack trace:
    #0 wp-content/plugins/eazy-twitter-cards/eazy-twitter-cards.php(720): twittermeta()
    #1 wp-admin/includes/plugin.php(2318): include_once('/var/www/wordpr...')
    #2 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.63ms] Passed 4 tests

Analyzing server-side resources used by Eazy Twitter Cards For Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.74 ▲3.74
Dashboard /wp-admin3.31 ▼0.0447.19 ▼8.30
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▲2.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.24 ▼13.94
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲1.60

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Eazy Twitter Cards For Posts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.371.83 ▲0.3344.06 ▲1.21
Dashboard /wp-admin2,206 ▲144.85 ▼0.24114.01 ▲4.6742.49 ▲0.40
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0336.42 ▼0.4232.70 ▲0.29
Add New Post /wp-admin/post-new.php1,541 ▲818.19 ▼4.67604.57 ▼39.9050.04 ▼6.61
Media Library /wp-admin/upload.php1,385 ▼64.19 ▼0.0196.25 ▼3.7443.54 ▼5.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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 fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-twitter-cards/eazy-twitter-cards-action.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_field() in wp-content/plugins/eazy-twitter-cards/eazy-twitter-meta.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eazy-twitter-cards/eazy-twitter-cards-action.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (These are the Twitter Cards available to choose from.), #2 (All options for all Twitter Cards.)
You can look at the official readme.txt

eazy-twitter-cards/eazy-twitter-cards.php 92% from 13 tests

The entry point to "Eazy Twitter Cards For Posts" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin811 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32011808
CSS1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.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 images were found in this plugin