84% stetic

Code Review | Stetic

WordPress plugin Stetic scored84%from 54 tests.

About plugin

  • Plugin page: stetic
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2015
  • Latest release: Dec 20, 2022
  • Number of updates: 32
  • Update frequency: every 88.2 days
  • Top authors: stetic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,180 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.84ms] Passed 4 tests

This is a short check of server-side resources used by Stetic
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.14 ▲0.24
Dashboard /wp-admin3.37 ▲0.0255.74 ▼9.02
Posts /wp-admin/edit.php3.41 ▲0.0552.00 ▼0.63
Add New Post /wp-admin/post-new.php5.95 ▲0.0584.99 ▼9.93
Media Library /wp-admin/upload.php3.29 ▲0.0536.94 ▲1.65
Stetic /wp-admin/options-general.php?page=stetic/stetic.php&tab=settings3.2535.72

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Stetic
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲10914.90 ▲0.541.55 ▼0.1339.13 ▼2.32
Dashboard /wp-admin2,289 ▲1126.86 ▲1.19109.36 ▲14.6151.42 ▲8.43
Posts /wp-admin/edit.php2,116 ▲131.98 ▼0.0535.23 ▼2.4032.60 ▼3.43
Add New Post /wp-admin/post-new.php1,559 ▲3322.99 ▼0.09744.49 ▲116.6262.05 ▲6.09
Media Library /wp-admin/upload.php1,419 ▲194.24 ▲0.04104.55 ▼1.3268.04 ▲23.48
Stetic /wp-admin/options-general.php?page=stetic/stetic.php&tab=settings9062.1723.7428.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/stetic/stetic.php:392

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Stetic Dashboard with more statistic data), #2 (Stetic settings), #3 (Stetic on wordpress dashboard)
Please take inspiration from this readme.txt

stetic/stetic.php 92% from 13 tests

Analyzing the main PHP file in "Stetic" version 1.0.12
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)

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
Everything looks great! No dangerous files found in this plugin797 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2670352
PHP14752301
CSS2174144

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.77
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity5.62
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods1184.62%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
6 PNG files occupy 0.15MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png23.10KB10.49KB▼ 54.59%
screenshot-2.png50.39KB20.90KB▼ 58.53%
img/icon.png0.28KB0.36KB0.00%
img/browser-logos.png7.32KB2.87KB▼ 60.76%
img/os-logos.png3.21KB1.87KB▼ 41.67%