78% terrific-integration

Code Review | Terrific Integration

WordPress plugin Terrific Integration scored78%from 54 tests.

About plugin

  • Plugin page: terrific-integration
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 7, 2013
  • Latest release: Dec 12, 2013
  • Number of updates: 5
  • Update frequency: every 17.2 days
  • Top authors: LZurbriggen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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.00MB] [CPU: ▼6.17ms] Passed 4 tests

A check of server-side resources used by Terrific Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.29 ▼7.29
Dashboard /wp-admin3.31 ▲0.0144.36 ▲0.04
Posts /wp-admin/edit.php3.36 ▲0.0147.85 ▲2.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.61 ▼13.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.49 ▼4.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 180 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Terrific Integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.75 ▼0.611.71 ▼0.4741.53 ▲1.46
Dashboard /wp-admin2,220 ▲325.84 ▼0.02113.12 ▼1.7984.95 ▲44.49
Posts /wp-admin/edit.php2,107 ▲181.99 ▼0.0138.49 ▼4.1636.57 ▼0.39
Add New Post /wp-admin/post-new.php1,537 ▲1823.22 ▼0.21692.31 ▲44.9458.51 ▲6.60
Media Library /wp-admin/upload.php1,396 ▲84.18 ▼0.0898.59 ▼19.3484.37 ▲35.34

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 9× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/terrific-integration/templates/skin_js.php
    • > /wp-content/plugins/terrific-integration/templates/skin_less.php
    • > /wp-content/plugins/terrific-integration/templates/skin_scss.php
    • > /wp-content/plugins/terrific-integration/templates/skin_css.php
    • > /wp-content/plugins/terrific-integration/terrific-theme/modules/Comments/comments.php
    • > /wp-content/plugins/terrific-integration/templates/css.php
    • > /wp-content/plugins/terrific-integration/templates/js.php
    • > /wp-content/plugins/terrific-integration/templates/scss.php
    • > /wp-content/plugins/terrific-integration/templates/less.php
  • 79× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassRuleNode.php:18
    • > PHP Notice
      Undefined variable: module in wp-content/plugins/terrific-integration/templates/skin_js.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassImportNode.php:18
    • > PHP Notice
      Undefined variable: current_user in wp-content/plugins/terrific-integration/templates/skin_js.php on line 5
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassPropertyNode.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function module() in wp-content/plugins/terrific-integration/terrific-theme/comments.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'SassNode' not found in wp-content/plugins/terrific-integration/library/phpsass/tree/SassRootNode.php:21
    • > PHP Fatal error
      Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in wp-content/plugins/terrific-integration/library/phpsass/script/SassScriptLexer.php on line 113
    • > PHP Notice
      Undefined variable: skin in wp-content/plugins/terrific-integration/templates/skin_scss.php on line 1
    • > PHP Notice
      Undefined variable: current_user in wp-content/plugins/terrific-integration/templates/js.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: frontend, micro, modules, integration, terrific...

terrific-integration/terrific.php 85% from 13 tests

The main PHP script in "Terrific Integration" version 1.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("terrific-integration.php" instead of "terrific.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected11,118 lines of code in 162 files:
LanguageFilesBlank linesComment linesLines of code
PHP731,5344,2248,323
Sass713731,1082,346
CSS51711200
LESS5280117
JavaScript4245490
JSON20024
YAML10111
Markdown1307

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity14.61
▷ Minimum class complexity1.00
▷ Maximum class complexity316.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes151
▷ Abstract classes117.28%
▷ Concrete classes14092.72%
▷ Final classes00.00%
Methods774
▷ Static methods16721.58%
▷ Public methods60277.78%
▷ Protected methods15319.77%
▷ Private methods192.45%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants139
▷ Global constants00.00%
▷ Class constants139100.00%
▷ Public constants139100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.17MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon.png3.23KB0.69KB▼ 78.59%
assets/screenshot-3.png60.02KB25.85KB▼ 56.93%
assets/screenshot-1.png43.79KB16.95KB▼ 61.29%
assets/screenshot-2.png59.18KB21.06KB▼ 64.41%
plugin-icon.png3.79KB1.48KB▼ 61.07%