78% eight-degree-posts-list

Code Review | 8Degree Posts List Plugin

WordPress plugin 8Degree Posts List Plugin scored 78% from 54 tests.

About plugin

  • Plugin page: eight-degree-post...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.4.19+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Aug 10, 2018
  • Number of updates: 13
  • Update frequency: every 25.3 days
  • Top authors: 8degreethemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,550 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.80ms] Passed 4 tests

This is a short check of server-side resources used by 8Degree Posts List Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.82 ▼0.22
Dashboard /wp-admin3.35 ▲0.0444.44 ▼4.22
Posts /wp-admin/edit.php3.46 ▲0.1049.03 ▼3.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0792.26 ▼14.95
Media Library /wp-admin/upload.php3.27 ▲0.0442.97 ▲9.06
Eight Degree Posts List /wp-admin/edit.php?post_type=edpl_posts_list3.3145.54
About /wp-admin/edit.php?post_type=edpl_posts_list&page=edpl_about3.2731.58
Add New /wp-admin/post-new.php?post_type=edpl_posts_list3.4948.98
How To Use Post Integration /wp-admin/edit.php?post_type=edpl_posts_list&page=edpl_help3.2630.39

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for 8Degree Posts List Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,963 ▲20613.56 ▼0.819.50 ▲7.6068.82 ▲26.66
Dashboard /wp-admin2,245 ▲575.82 ▲0.91108.01 ▼12.8539.30 ▼3.37
Posts /wp-admin/edit.php2,131 ▲422.14 ▲0.0939.71 ▼2.3134.57 ▼1.04
Add New Post /wp-admin/post-new.php1,713 ▲17124.71 ▲6.28609.51 ▼13.1454.45 ▲2.97
Media Library /wp-admin/upload.php1,430 ▲424.18 ▼0.0298.78 ▲1.6440.61 ▼2.63
Eight Degree Posts List /wp-admin/edit.php?post_type=edpl_posts_list1,1201.9431.5027.69
About /wp-admin/edit.php?post_type=edpl_posts_list&page=edpl_about9452.0422.2728.29
Add New /wp-admin/post-new.php?post_type=edpl_posts_list1,9942.5851.6365.05
How To Use Post Integration /wp-admin/edit.php?post_type=edpl_posts_list&page=edpl_help8162.0424.0125.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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)
Even though no errors were found, 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
Please fix the following items
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_save_backend_set.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_custom_post_type.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/frontend/edpl_shortcodes.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_about_callback.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_help_callback.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_shortcode_options.php
    • > /wp-content/plugins/eight-degree-posts-list/inc/backend/edpl_backend_view.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/eight-degree-posts-list/eight-degree-posts-list.php:62

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #5 (Screen Shot 5), #6 (Screen Shot 6), #7 (Screen Shot 7), #8 (Screen Shot 8), #9 (Screen Shot 9)
  • Tags: You are using too many tags: 43 tag instead of maximum 10
The official readme.txt is a good inspiration

eight-degree-posts-list/eight-degree-posts-list.php Passed 13 tests

"8Degree Posts List Plugin" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
A plugin that works on each and every aspects of WordPress Posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin9,742 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS7811163,732
SVG1002,671
PHP91351121,490
JavaScript61166061,212
Markdown21410637

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 complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.46
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 1.95MB with 1.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/images-demo/template-4.PNG372.77KB70.18KB▼ 81.17%
images/images-demo/template-1.PNG95.10KB27.22KB▼ 71.38%
images/images-demo/template-2.PNG382.38KB91.00KB▼ 76.20%
images/images-demo/template-5.PNG891.64KB275.55KB▼ 69.10%
images/images-demo/template-3.PNG251.42KB74.43KB▼ 70.39%