93% citationic

Code Review | Cite

WordPress plugin Cite scored 93% from 53 tests.

About plugin

  • Plugin page: citationic
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.1
  • WordPress version: 5.8.1
  • First release: May 18, 2020
  • Latest release: May 19, 2020
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: evolink (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

100+ active / 834 total downloads

Benchmarks

Plugin footprint Passed 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.01MB] [CPU: ▼274.63ms] Passed 4 tests

This is a short check of server-side resources used by Cite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1337.71 ▲15.76
Dashboard /wp-admin3.07 ▲0.0238.88 ▼0.30
Posts /wp-admin/edit.php3.12 ▲0.0236.04 ▼7.29
Add New Post /wp-admin/post-new.php5.44 ▲0.0182.69 ▼1,087.88
Media Library /wp-admin/upload.php3.02 ▲0.0132.61 ▼3.06
Citationic /wp-admin/tools.php?page=wp-citationic2.9827.38

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Cite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,657 ▲5115.75 ▲0.2010.10 ▲1.8349.98 ▲2.72
Dashboard /wp-admin2,934 ▲846.07 ▲0.32147.12 ▲7.89107.58 ▲7.88
Posts /wp-admin/edit.php2,711 ▲52.69 ▲0.0165.91 ▼2.7594.76 ▲5.61
Add New Post /wp-admin/post-new.php1,671 ▼18218.82 ▼0.33389.94 ▼0.61107.72 ▼3.41
Media Library /wp-admin/upload.php1,780 ▲85.00 ▲0.02148.95 ▼13.26102.23 ▼37.78
Citationic /wp-admin/tools.php?page=wp-citationic1,0212.0953.4963.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/citationic/citationic.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Using [citationic] in widget), #2 (Instructions how to use in admin)
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

citationic/citationic.php 92% from 13 tests

The main PHP script in "Cite" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 171 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected74 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP125874

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin