84% samuweb-skim-blog

Code Review | Skim blog

WordPress plugin Skim blog scored84%from 54 tests.

About plugin

  • Plugin page: samuweb-skim-blog
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2014
  • Latest release: Jun 23, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: samuweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /690 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼7.31ms] Passed 4 tests

Analyzing server-side resources used by Skim blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.79 ▼5.43
Dashboard /wp-admin3.32 ▲0.0248.80 ▼3.12
Posts /wp-admin/edit.php3.37 ▲0.0155.48 ▲0.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.83 ▼21.44
Media Library /wp-admin/upload.php3.24 ▲0.0138.46 ▲2.70
Samuweb Skim Blog /wp-admin/options-general.php?page=samuweb-skim-blog-settings3.2133.65

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Skim blog
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.97 ▼0.625.42 ▲3.6938.86 ▼4.76
Dashboard /wp-admin2,219 ▲166.03 ▲1.12103.65 ▼4.9038.86 ▼5.08
Posts /wp-admin/edit.php2,107 ▲41.97 ▼0.0541.30 ▼4.8636.20 ▼1.21
Add New Post /wp-admin/post-new.php1,534 ▲823.16 ▲5.68664.92 ▲33.4866.63 ▲10.99
Media Library /wp-admin/upload.php1,401 ▲14.24 ▲0.0398.36 ▼10.1741.74 ▼3.84
Samuweb Skim Blog /wp-admin/options-general.php?page=samuweb-skim-blog-settings9142.0226.3030.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/samuweb-skim-blog/samuweb-skim-blog.php:90
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/samuweb-skim-blog/samuweb-skim-blog-admin.php:31

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: readability, legibility, blog, accessibility, user experience...

samuweb-skim-blog/samuweb-skim-blog.php Passed 13 tests

"Skim blog" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
48 characters long description:
An easy way to let users skim your pages quickly

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin148 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24126123
JavaScript17220
CSS1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
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 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin