84% cc-lexicon-lite

Code Review | CC Lexicon Lite

WordPress plugin CC Lexicon Lite scored84%from 54 tests.

About plugin

  • Plugin page: cc-lexicon-lite
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2015
  • Latest release: May 26, 2015
  • Number of updates: 11
  • Update frequency: every 12.6 days
  • Top authors: caterhamcomputing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,776 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.16ms] Passed 4 tests

Server-side resources used by CC Lexicon Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.66 ▲1.82
Dashboard /wp-admin3.38 ▲0.0748.00 ▲0.38
Posts /wp-admin/edit.php3.43 ▲0.0743.89 ▲2.53
Add New Post /wp-admin/post-new.php5.96 ▲0.0780.50 ▼12.01
Media Library /wp-admin/upload.php3.30 ▲0.0735.51 ▲1.17
Add New Lexicon Entry /wp-admin/post-new.php?post_type=lexicon3.4153.46
Lexicon Entries /wp-admin/edit.php?post_type=lexicon3.3438.06
Lexicon Category /wp-admin/edit-tags.php?taxonomy=lexicon_category&post_type=lexicon3.2934.19

Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for CC Lexicon Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.41 ▼1.329.06 ▲7.4239.73 ▲0.23
Dashboard /wp-admin2,226 ▲465.63 ▼0.0284.36 ▼4.2239.37 ▲0.45
Posts /wp-admin/edit.php2,110 ▲102.00 ▲0.0134.44 ▼0.4732.39 ▼6.06
Add New Post /wp-admin/post-new.php1,557 ▲3122.90 ▼0.21578.54 ▼30.9367.33 ▲3.72
Media Library /wp-admin/upload.php1,434 ▲344.20 ▲0.03103.49 ▲6.9741.56 ▼0.28
Add New Lexicon Entry /wp-admin/post-new.php?post_type=lexicon2,2677.57164.8661.64
Lexicon Entries /wp-admin/edit.php?post_type=lexicon1,0921.9433.4228.55
Lexicon Category /wp-admin/edit-tags.php?taxonomy=lexicon_category&post_type=lexicon1,3082.1231.4731.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-lexicon-lite/index.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

cc-lexicon-lite/index.php 92% from 13 tests

The main PHP file in "CC Lexicon Lite" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cc-lexicon-lite.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin515 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27439228
CSS1085180
PO File1282876
JavaScript1111230
LESS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin