100% go-simple-db

Code Review | Gigaom Simple DB

WordPress plugin Gigaom Simple DB scored 100% from 54 tests.

About plugin

  • Plugin page: go-simple-db
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-3.6.1
  • WordPress version: 5.9.2
  • First release: Apr 7, 2014
  • Latest release: Apr 8, 2014
  • Number of updates: 7
  • Update frequency: every 6.4 days
  • Top authors: methnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 634 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼299.34ms] Passed 4 tests

An overview of server-side resources used by Gigaom Simple DB
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.57 ▲2.34
Dashboard /wp-admin3.42 ▲0.0141.10 ▲1.91
Posts /wp-admin/edit.php3.65 ▲0.0150.21 ▲6.51
Add New Post /wp-admin/post-new.php6.89 ▼0.08104.03 ▼1,199.82
Media Library /wp-admin/upload.php3.30 ▲0.0130.96 ▼1.80

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Gigaom Simple DB
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.01 ▲0.305.69 ▼0.582.82 ▲0.17
Dashboard /wp-admin2,892 ▲316.09 ▲0.02120.39 ▼12.65158.99 ▼8.24
Posts /wp-admin/edit.php2,688 ▲33.24 ▲0.0064.89 ▲1.68138.23 ▼5.63
Add New Post /wp-admin/post-new.php1,773 ▲6221.67 ▲0.34447.52 ▼116.89153.38 ▼36.94
Media Library /wp-admin/upload.php1,698 ▼05.50 ▼0.02146.35 ▲4.69186.84 ▼15.83

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

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: wordpress, amazon simple db

go-simple-db/go-simple-db.php 92% from 13 tests

The principal PHP file in "Gigaom Simple DB" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Version: The plugin version was missing

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
There were no executable files found in this plugin864 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6152399864

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity34.00
▷ Minimum class complexity1.00
▷ Maximum class complexity128.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods77
▷ Static methods11.30%
▷ Public methods6381.82%
▷ Protected methods810.39%
▷ Private methods67.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin