84% canonical-seo-content-syndication

Code Review | Canonical SEO Content Syndication Wordpress Plugin

WordPress plugin Canonical SEO Content Syndication Wordpress Plugin scored84%from 54 tests.

About plugin

  • Plugin page: canonical-seo-con...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Sep 13, 2014
  • Latest release: Apr 1, 2019
  • Number of updates: 18
  • Update frequency: every 92.3 days
  • Top authors: denharsh (83.33%)Otto42 (22.22%)

Code review

54 tests

User reviews

4 reviews

Install metrics

900+ active /14,316 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by Canonical SEO Content Syndication Wordpress Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.18 ▼2.89
Dashboard /wp-admin3.32 ▲0.0245.63 ▼9.91
Posts /wp-admin/edit.php3.37 ▲0.0149.04 ▲5.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.83 ▼5.61
Media Library /wp-admin/upload.php3.24 ▲0.0138.10 ▲4.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Canonical SEO Content Syndication Wordpress Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.60 ▼0.991.83 ▲0.2139.29 ▼3.96
Dashboard /wp-admin2,203 ▲155.80 ▲0.0193.88 ▼6.8637.46 ▼3.24
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.58 ▲2.2233.60 ▲0.63
Add New Post /wp-admin/post-new.php6,414 ▲4,90027.71 ▲10.16915.24 ▲240.1553.89 ▼1.36
Media Library /wp-admin/upload.php1,391 ▼04.22 ▲0.0298.28 ▲0.8542.15 ▼0.20

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/canonical-seo-content-syndication/canonicalPlugin.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

canonical-seo-content-syndication/canonicalPlugin.php 92% from 13 tests

Analyzing the main PHP file in "Canonical SEO Content Syndication Wordpress Plugin" version 3.0
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("canonical-seo-content-syndication.php" instead of "canonicalPlugin.php")

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
Success! There were no dangerous files found in this plugin145 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13626145

PHP code Passed 2 tests

An short overview of 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.19
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png1.80KB1.68KB▼ 6.83%