84% rich-snippet-for-ai1ec

Code Review | Ai1ec Rich Snippets

WordPress plugin Ai1ec Rich Snippets scored 84% from 54 tests.

About plugin

  • Plugin page: rich-snippet-for-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Nov 20, 2016
  • Number of updates: 13
  • Update frequency: every 13.9 days
  • Top authors: abwebgorohovets (61.54%)sooskriszta (46.15%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 2,754 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.15ms] Passed 4 tests

An overview of server-side resources used by Ai1ec Rich Snippets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.33 ▼0.87
Dashboard /wp-admin3.31 ▲0.0047.02 ▼0.68
Posts /wp-admin/edit.php3.36 ▲0.0046.49 ▼5.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.37 ▼5.99
Media Library /wp-admin/upload.php3.23 ▲0.0035.51 ▲1.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ai1ec Rich Snippets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.63 ▼0.3944.03 ▼4.16
Dashboard /wp-admin2,209 ▲214.82 ▼1.0999.15 ▼9.7236.72 ▼4.59
Posts /wp-admin/edit.php2,089 ▲211.97 ▼0.0838.37 ▼0.1632.41 ▲1.01
Add New Post /wp-admin/post-new.php1,538 ▲423.12 ▲0.20622.75 ▲25.6263.59 ▼18.20
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.01105.66 ▼4.1041.91 ▼2.68

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rich-snippet-for-ai1ec/rsai1ec.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: schemaorg, calendar, rich snippets, seo, google rich snippets...

rich-snippet-for-ai1ec/rsai1ec.php 85% from 13 tests

The main PHP file in "Ai1ec Rich Snippets" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rich-snippet-for-ai1ec.php" instead of "rsai1ec.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin132 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23339132

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods150.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There are no PNG files in this plugin