84% simple-livetex

Code Review | Simple LiveTex

WordPress plugin Simple LiveTex scored84%from 54 tests.

About plugin

  • Plugin page: simple-livetex
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 8, 2018
  • Latest release: Oct 9, 2018
  • Number of updates: 5
  • Update frequency: every 6.4 days
  • Top authors: hayk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /495 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
Installer ran successfully

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

Analyzing server-side resources used by Simple LiveTex
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.23 ▲1.93
Dashboard /wp-admin3.32 ▼0.0348.60 ▼17.08
Posts /wp-admin/edit.php3.37 ▲0.0150.04 ▲0.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.63 ▼14.70
Media Library /wp-admin/upload.php3.24 ▲0.0136.57 ▼1.99
Simple LiveTex /wp-admin/options-general.php?page=simple-livetex3.2138.21

Server storage [IO: ▲0.04MB] [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, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
simple_livetex_id

Browser metrics Passed 4 tests

Checking browser requirements for Simple LiveTex
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.37 ▲0.092.18 ▲0.1345.47 ▲0.17
Dashboard /wp-admin2,199 ▲225.65 ▲0.0391.96 ▼9.4839.47 ▼5.97
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0141.23 ▲4.7534.70 ▼1.70
Add New Post /wp-admin/post-new.php1,548 ▲1723.44 ▲0.12653.32 ▼7.4049.92 ▼5.26
Media Library /wp-admin/upload.php1,404 ▲74.25 ▲0.0497.36 ▼15.5243.12 ▼4.06
Simple LiveTex /wp-admin/options-general.php?page=simple-livetex8012.0326.2725.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-livetex/simple-livetex.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-livetex/options.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: livetex, javascript

simple-livetex/simple-livetex.php 92% from 13 tests

The entry point to "Simple LiveTex" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin